IconMarker<T> constructor
IconMarker<T> ({})
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;
}