Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.
HarmonyOS
- import { map, mapCommon } from '@kit.MapKit';
Animation class for controlling movement, which inherits from Animation.
Model restriction: This API can be used only in the stage model.
Atomic service API: This API can be used in atomic services since version 4.1.0(11).
System capability: SystemCapability.Map.Core
Since: 4.1.0(11)
constructor(target: mapCommon.LatLng)
Constructor, which is used to construct an animation instance for movement control.
Model restriction: This API can be used only in the stage model.
Atomic service API: This API can be used in atomic services since version 4.1.0(11).
System capability: SystemCapability.Map.Core
Since: 4.1.0(11)
Parameters:
| Name | Type | Mandatory | Description |
|---|---|---|---|
| target | mapCommon.LatLng | Yes | Latitude and longitude of the movement target position. Invalid values are not processed. |
Example:
- let target: mapCommon.LatLng = {
- latitude: 31,
- longitude: 118
- };
- let animation: map.TranslateAnimation = new map.TranslateAnimation(target);
Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
Quick start
Helps you find desired resources with ease.