initResources method

Future<void> initResources(
  1. SymbolCache symbolCache
)

Implementation

Future<void> initResources(SymbolCache symbolCache) async {
  bitmap?.dispose();
  //bitmap = await loadBitmap(10, symbolCache);
  if (bitmap != null) {
    if (isFillTransparent()) setFillColorFromNumber(0xff000000);
    setFillBitmapShader(bitmap!);
    bitmap!.dispose();
  }
  if (markerCaption != null) {
    markerCaption!.latLong = LatLong(
        minLatLon.latitude + (maxLatLon.latitude - minLatLon.latitude) / 2,
        minLatLon.longitude +
            (maxLatLon.longitude - minLatLon.longitude) /
                2); //GeometryUtils.calculateCenter(path);
  }
}