MethodChannelVietmapAutomotiveFlutter class
An implementation of VietmapAutomotiveFlutterPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- VietmapAutomotiveFlutterPlatform
- MethodChannelVietmapAutomotiveFlutter
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to interact with the native platform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addMarkers(
{required List< Marker> markers}) → Future<List< Marker> > -
Add the given markers to the map.
The markers must have a valid image path.
The image will be loaded from the asset and converted to base64 before sending to the native platform.
Width and height of each marker must be both provided or both null
override
-
addOnMapClickListener(
dynamic listener(double, double)) → void -
Method to add a listener for the map click event.
override
-
addOnMapReadyListener(
dynamic listener()) → void -
Method to add a listener for the map ready event.
override
-
addOnMapRenderedListener(
dynamic listener()) → void -
Method to add a listener for the map rendered event.
override
-
addOnStyleLoadedListener(
dynamic listener()) → void -
Method to add a listener for the style loaded event.
override
-
addPolygons(
{required List< Polygon> polygons}) → Future<List< Polygon> > -
Add the given polygons to the map.
Each polygon must have at least three points.
override
-
addPolylines(
{required List< Polyline> polylines}) → Future<List< Polyline> > -
Add the given polylines to the map.
Each polyline must have at least two points.
override
-
getPlatformVersion(
) → Future< String?> -
override
-
init(
{void onMapReady()?, void onMapClick(double latitude, double longitude)?, void onMapRendered()?, void onStyleLoaded()?}) → void -
Set up the method channel and listen for method calls from the native platform.
override
-
initAutomotive(
{required String styleUrl, required String vietMapAPIKey}) → Future< bool?> -
Initialize the map with the given style URL and VietMap API key.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeAllMarkers(
) → Future< bool?> -
Remove all markers from the map.
override
-
removeAllPolygons(
) → Future< bool?> -
Remove all polygons from the map.
override
-
removeAllPolylines(
) → Future< bool?> -
Remove all polylines from the map.
override
-
removeMarker(
{required List< int> markerIds}) → Future<bool?> -
Remove the markers with the given markerIds from the map.
override
-
removeOnMapClickListener(
dynamic listener(double lat, double lng)) → void -
Method to remove a listener for the map click event.
override
-
removeOnMapReadyListener(
dynamic listener()) → void -
Method to remove a listener for the map ready event.
override
-
removeOnMapRenderedListener(
dynamic listener()) → void -
Method to remove a listener for the map rendered event.
override
-
removeOnStyleLoadedListener(
dynamic listener()) → void -
Method to remove a listener for the style loaded event.
override
-
removePolygon(
{required List< int> polygonIds}) → Future<bool?> -
Remove the polygons with the given polygonIds from the map.
override
-
removePolyline(
{required List< int> polylineIds}) → Future<bool?> -
Remove the polylines with the given polylineIds from the map.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited