To change compass related settings:
To enable or disable the compass:
MapplsMap(
initialCameraPosition: _kInitialPosition,
compassEnabled: false,
)
To set the gravity of compass view:
MapplsMap(
initialCameraPosition: _kInitialPosition,
compassViewPosition: CompassViewPosition.BottomLeft,
)
There are four possible values:
CompassViewPosition.TopLeft
: To set gravity at top left of the screen.CompassViewPosition.TopRight
: To set gravity at top right of the screen.CompassViewPosition.BottomLeft
: To set gravity at bottom left of the screen.CompassViewPosition.BottomRight
: To set gravity at bottom right of the screen
To set the margin of compass view:
MapplsMap(
initialCameraPosition: _kInitialPosition,
compassViewMargins: Point(20, 10),
)
To change the positions 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.comSupport Need support? contact us!
@ Copyright 2022 CE Info Systems Ltd. All Rights Reserved.
Terms & Conditions | Privacy Policy | Supplier Sustainability Policy | Health & Safety Policy | Environmental Policy & CSR Report
Customer Care: +91-9999333223