addMarker method
Future<void>
addMarker(
- GeoPoint p, {
- MarkerIcon? markerIcon,
- double? angle,
- IconAnchor? iconAnchor,
Implementation
Future<void> addMarker(
GeoPoint p, {
MarkerIcon? markerIcon,
double? angle,
IconAnchor? iconAnchor,
}) async {
if (angle != null) {
assert(
angle >= 0 && angle <= 2 * pi, "angle should be between 0 and 2*pi");
}
await osmBaseController.addMarker(
p,
markerIcon: markerIcon,
angle: angle,
iconAnchor: iconAnchor,
);
}