addMarker method

Future<void> addMarker(
  1. GeoPoint p, {
  2. MarkerIcon? markerIcon,
  3. double? angle,
  4. 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,
  );
}