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