IconMarker<T> constructor

IconMarker<T>({
  1. ZoomlevelRange zoomlevelRange = const ZoomlevelRange.standard(),
  2. T? key,
  3. required ILatLong latLong,
  4. MapPositioning position = MapPositioning.CENTER,
  5. bool rotateWithMap = false,
  6. required IconData iconData,
  7. int bitmapColor = 0xff000000,
  8. double size = 20,
  9. double rotation = 0,
})

Implementation

IconMarker({
  super.zoomlevelRange,
  super.key,
  required super.latLong,
  MapPositioning position = MapPositioning.CENTER,
  bool rotateWithMap = false,
  required IconData iconData,
  int bitmapColor = 0xff000000,
  double size = 20,

  /// Rotation of the poi in degrees clockwise
  double rotation = 0,
}) {
  renderinstruction = RenderinstructionIcon(0);
  renderinstruction.codePoint = iconData.codePoint;
  renderinstruction.fontFamily = iconData.fontFamily!;
  renderinstruction.setBitmapColorFromNumber(bitmapColor);
  renderinstruction.setBitmapMinZoomLevel(MapsforgeSettingsMgr().strokeMinZoomlevelText);
  renderinstruction.theta = Projection.degToRadian(rotation);
  renderinstruction.setBitmapWidth(size.round());
  renderinstruction.setBitmapHeight(size.round());
  renderinstruction.position = position;
  renderinstruction.rotateWithMap = rotateWithMap;
}