markerUrl method

  1. @override
String markerUrl(
  1. LocationCoords coords, {
  2. int? zoom,
})
override

Builds a universal link (HTTPS) for showing a marker.

Returns null if not supported.

Implementation

@override
String markerUrl(LocationCoords coords, {int? zoom}) => buildUrl(
  url: 'https://www.google.com/maps/search/',
  queryParams: {
    'api': '1',
    'query': coords.latlng,
    if (zoom != null) 'z': zoom.toString(),
  },
);