addCustomMarker method
dynamic
addCustomMarker()
override
Create marker on point with title, in this marker you may configure a button and its callback
on point
with title
buttons with names
and callbacks acts
Implementation
@override
addCustomMarker(
LatLng point, String title, List<String> names, List<Function> acts) {
List<String> buttIds = [];
for (var act in acts) {
String id = createUniqueUid(count: 6, isNumberEnabled: false);
buttIds.add(id);
//print(id);
super.markersAction[id] = act;
}
js_util.globalContext.callMethodVarArgs('_addMarkerCustom'.toJS, [
point.latitude.toJS,
point.longitude.toJS,
title.toJS,
[...names.map((e) => e.toJS)].toJS,
[...buttIds.map((e) => e.toJS)].toJS
]);
}