Skip to content

Latest commit

 

History

History
118 lines (89 loc) · 4 KB

Map-Ui-Settings.md

File metadata and controls

118 lines (89 loc) · 4 KB

Map UI settings

To change compass related settings:

Enable/ Disable compass

To enable or disable the compass:

MapplsMap(  
  initialCameraPosition: _kInitialPosition,  
  compassEnabled: false,  
)

Gravity of Compass

To set the gravity of compass view:

MapplsMap(  
  initialCameraPosition: _kInitialPosition,  
  compassViewPosition: CompassViewPosition.BottomLeft,  
)

There are four possible values:

  1. CompassViewPosition.TopLeft: To set gravity at top left of the screen.
  2. CompassViewPosition.TopRight: To set gravity at top right of the screen.
  3. CompassViewPosition.BottomLeft: To set gravity at bottom left of the screen.
  4. CompassViewPosition.BottomRight: To set gravity at bottom right of the screen

Margins of compass

To set the margin of compass view:

MapplsMap(  
  initialCameraPosition: _kInitialPosition,  
  compassViewMargins: Point(20, 10),  
)  

To change the positions of logo:

Margin of Logo

To set the margins of Logo view

MapplsMap(  
  initialCameraPosition: _kInitialPosition,  
  logoViewMargins: Point(20, 10),  
)  

To enable or disable the map rotation:

MapplsMap(  
  initialCameraPosition: _kInitialPosition,  
  rotateGesturesEnabled: false,  
)

To enable or disable the map scrolling:

MapplsMap(  
  initialCameraPosition: _kInitialPosition,  
  scrollGesturesEnabled: false,  
)

To enable or disable map tilt:

MapplsMap(  
  initialCameraPosition: _kInitialPosition,  
  tiltGesturesEnabled: false,  
)

To enable or disable zoom gesture

MapplsMap(  
  initialCameraPosition: _kInitialPosition,  
  zoomGesturesEnabled: false,  
)




For any queries and support, please contact:

Email us at apisupport@mappls.com

Support Need support? contact us!





@ Copyright 2022 CE Info Systems Ltd. All Rights Reserved.