PoiMarker<T> constructor

PoiMarker<T>({
  1. ZoomlevelRange zoomlevelRange = const ZoomlevelRange.standard(),
  2. T? key,
  3. required ILatLong latLong,
  4. MapPositioning positioning = MapPositioning.CENTER,
  5. bool rotateWithMap = false,
  6. required String src,
  7. int bitmapColor = 0xff000000,
  8. double width = 20,
  9. double height = 20,
  10. double rotation = 0,
})

Implementation

PoiMarker({
  super.zoomlevelRange,
  super.key,
  required super.latLong,
  MapPositioning positioning = MapPositioning.CENTER,
  bool rotateWithMap = false,
  required String src,
  int bitmapColor = 0xff000000,
  double width = 20,
  double height = 20,

  /// Rotation of the poi in degrees clockwise
  double rotation = 0,
}) {
  renderinstruction = RenderinstructionSymbol(0);
  renderinstruction.bitmapSrc = src;
  renderinstruction.setBitmapColorFromNumber(bitmapColor);
  renderinstruction.setBitmapMinZoomLevel(MapsforgeSettingsMgr().strokeMinZoomlevelText);
  renderinstruction.theta = Projection.degToRadian(rotation);
  renderinstruction.setBitmapWidth(width.round());
  renderinstruction.setBitmapHeight(height.round());
  renderinstruction.positioning = positioning;
  renderinstruction.rotateWithMap = rotateWithMap;
  renderinstruction.display = MapDisplay.ALWAYS;
}