customUserLocationMarker method

Future customUserLocationMarker(
  1. GlobalKey<State<StatefulWidget>> personIconMarkerKey
)

Implementation

Future customUserLocationMarker(
    GlobalKey<State<StatefulWidget>> personIconMarkerKey) async {
  if (personIconMarkerKey.currentContext != null) {
    final iconPNG = (await capturePng(personIconMarkerKey)).convertToString();
    final size = personIconMarkerKey.toSizeJS();
    interop.setUserLocationIconMarker(mapIdMixin, iconPNG, size);
  }
}