NtkMapControllerInterface class abstract
Interface to Ntk map controller
- Implementers
Constructors
- NtkMapControllerInterface({required String viewId})
- Interface to Ntk map controller
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
markers
↔ Map<
LatLng, dynamic Function(LatLng point)> -
Markers point and callback
getter/setter pair
-
markersAction
↔ Map<
String, Function> -
Markers id and callbacks(for custom markers)
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- viewId ↔ String
-
viewId of frame
getter/setter pair
Methods
-
addCustomMarker(
LatLng point, String title, List< String> names, List<Function> acts) → dynamic -
Create marker on point with title, in this marker you may configure a button and its callback
on
pointwithtitlebuttons withnamesand callbacksacts -
addMarker(
LatLng point, dynamic callback(LatLng point)?) → dynamic -
Add a marker on the map
pointand returnedcallbackwhen you clicked on it -
addPolyline(
List< LatLng> points) → dynamic -
Create polyline on List of
points(also clear all previous polyline) -
applyNewFilter(
MapFilter filter) → dynamic -
Apply a new map
filter -
goToPoint(
LatLng point) → dynamic -
Move center camera on
point(like panTo in leaflet) -
goToPointThenZoom(
LatLng point, double zoom) → dynamic -
Move camera to
pointandzoom(like flyTo in leaflet) -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateCurrentPosition(
LatLng point, double accuracy) → dynamic -
Update current position on map
This create a circle and marker with center in
pointRadius of circle isaccuracy
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
init(
String? viewId) → NtkMapControllerInterface - Create a controller for platform