RenderMap method
Implementation
Widget RenderMap() {
debugPrint("Build from renderMap");
Markers ??= LibsRF.instance.Configuration.Engine.MarkersList;
if (Settings?.EngineType == EngineTypeRF.google ||
Configuration.Engine.EngineType == EngineTypeRF.google) {
Map = GoogleMapRF(
// IConfig!,
controller: mapController.Controller!,
Settings: Settings,
Markers: Markers!,
polyline: Polyline,
Fences: Fences,
OnCircleTap: OnCircleTap,
OnPolygonTap: OnPolygonTap,
);
mapController.RFN.Engine.Map!.OnTap = OnTap;
mapController.RFN.Engine.Map!.OnScroll = OnMapScroll;
mapController.RFN.Engine.Map!.OnMapCreated = OnMapCreated;
mapController.RFN.Engine.Map!.OnPointerUp = onPointerUp;
return Map!.RenderEngine();
} else {
mapController.Controller ??= MapController();
Map = OSMMapRF(
// IConfig!,
controller: mapController.Controller!,
Settings: Settings,
Markers: Markers!,
polyline: Polyline,
Fences: Fences,
OnCircleTap: OnCircleTap,
OnPolygonTap: OnPolygonTap,
);
mapController.RFN.Engine.Map!.OnTap = OnTap;
mapController.RFN.Engine.Map!.OnScroll = OnMapScroll;
mapController.RFN.Engine.Map!.OnMapCreated = OnMapCreated;
mapController.RFN.Engine.Map!.OnPointerUp = onPointerUp;
return Map!.RenderEngine();
}
}