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.

Only Essential Cookies
Accept All
GuidesMap KitFlutterDevelopment GuideClient DevelopmentLite Mode

Lite Mode

Overview

In the lite mode, the Map SDK allows your app to show the static map image of a specified location at a specified zoom level to a user. The lite mode supports only static image–based functions. It is useful when the user wants to show multiple maps on one screen, or share their location using social apps such as WeChat Moments.

The following table lists the functions supported by the Map SDK in lite mode.

Expand

Function

Support

My location

Completely supported

Interaction gestures

Not supported

Map camera

Partially supported (Tilt and bearing cannot be set and animation is not supported.)

Map event

Only tap and long press events are supported.

Map type

Only standard maps and empty maps are supported.

Marker (Marker)

Only dragging and rotation are not supported.

Marker information window

Completely supported

Overlay (GroundOverlay and TileOverlay)

Not supported

Shape (Circle, Polyline, and Polygon)

Completely supported

Custom map style

Not supported

Enabling the Lite Mode

You can enable the lite mode according to the sample code below:

Collapse
Word wrap
Dark theme
Copy code
  1. HuaweiMap(
  2. liteMode:true,
  3. initialCameraPosition:CameraPosition(
  4. target:LatLng(51.5160895,-0.1294527),
  5. zoom: _zoom,
  6. ),
  7. onClick: (LatLng latLng) {
  8. log("Map Clicked at ${latLng.lat} : ${latLng.lng}");
  9. },
  10. onLongPress: (LatLng latLng) {
  11. log("Map LongClicked at ${latLng.lat} : ${latLng.lng}");
  12. },
  13. markers: markers,
  14. circles: circles,
  15. logoPadding:EdgeInsets.all(8.0),
  16. )
Search in Guides
Enter a keyword.