renderBitmap method

  1. @override
void renderBitmap(
  1. MarkerCallback markerCallback
)
override

renders the bitmap portion of this marker. This method is called by render() which also call the render method for the caption

Implementation

@override
void renderBitmap(MarkerCallback markerCallback) {
  // if (scaled == null ||
  //     _lastZoom != markerCallback.mapViewPosition.zoomLevel) {
  //   scaled =
  //       ShapeSymbol.scale(base, markerCallback.mapViewPosition.zoomLevel);
  //   _lastZoom = markerCallback.mapViewPosition.zoomLevel;
  //   //shapePaint = ShapePaintSymbol(scaled!);
  //   //shapePaint.init(symbolCache).then((value) {});
  // }
  // print(
  //     "renderCaption $caption for $minZoomLevel and $maxZoomLevel at ${markerCallback.mapViewPosition.zoomLevel}");
  shapePaint.renderNode(
    markerCallback.flutterCanvas,
    nodeProperties,
    markerCallback.mapViewPosition.projection,
    markerCallback.mapViewPosition
        .getLeftUpper(markerCallback.viewModel.mapDimension),
    rotateWithMap ? markerCallback.mapViewPosition.rotationRadian : 0,
  );
}