changePoiStyle method

  1. @override
Future<void> changePoiStyle(
  1. String poiId,
  2. String styleId, [
  3. bool transition = false
])
override

Implementation

@override
Future<void> changePoiStyle(String poiId, String styleId,
    [bool transition = false]) async {
  final style = manager._poiStyles[styleId]!;
  if (style.icon != null) {
    _preEncodedImage[poiId]![style.zoomLevel] =
        encodeImageToBase64(await style.icon!.readBytes());
  }
  for (var inStyle in style.otherStyles) {
    if (inStyle.icon == null) continue;
    _preEncodedImage[poiId]![inStyle.zoomLevel] =
        encodeImageToBase64(await style.icon!.readBytes());
  }
  _poiStyleId[poiId] = styleId;
}