init method
void
init(
- OsmWebWidgetState osmWebFlutterState,
- int idMap
)
Implementation
void init(OsmWebWidgetState osmWebFlutterState, int idMap) {
debugPrint("idMap $idMap");
OSMPlatform.instance.init(mapIdMixin);
//mapIdMixin = idMap;
setWidgetState(osmWebFlutterState);
channel = MethodChannel(FlutterOsmPluginWeb.getViewType(mapIdMixin));
debugPrint("in init _mapId $mapIdMixin");
if (osmWebFlutterState.widget.isStatic) {
Future.delayed(const Duration(seconds: 1), () async {
await removeMapControls();
});
}
}