NtkMapViewInterface constructor
NtkMapViewInterface({
- Key? key,
- dynamic onCreateStart()?,
- dynamic onCreateEnd()?,
- dynamic onMapClick(
- LatLng
- String mapPath = kReleaseMode ? "assets/packages/ntk_map_view/assets/map.html" : "packages/ntk_map_view/assets/map.html",
- NtkMapControllerInterface? mapController,
Widget to display a map this have a onCreateStart
, onCreateEnd
, onMapClick
callbacks
Also may configure path to map in mapPath
And add a controller
Implementation
NtkMapViewInterface(
{super.key,
this.onCreateStart,
this.onCreateEnd,
this.onMapClick,
this.mapPath = kReleaseMode
? "assets/packages/ntk_map_view/assets/map.html"
: "packages/ntk_map_view/assets/map.html",
NtkMapControllerInterface? mapController}) {
if (mapController == null) {
controller = cont.NtkMapController(viewId: createUniqueUid(count: 6));
} else {
controller = mapController;
}
state = st.NtkMapViewState();
}