getStaticMapImageUrl function

dynamic getStaticMapImageUrl(
  1. double latitude,
  2. double longitude, {
  3. String? customMarkerUrl,
})

-----------FUNCTIONS----------------------///

Implementation

getStaticMapImageUrl(double latitude, double longitude,{String? customMarkerUrl}){
  if(customMarkerUrl!=null){
    return 'https://maps.googleapis.com/maps/api/staticmap?center=${latitude},${longitude}&markers=icon:$customMarkerUrl|${latitude},${longitude}&format=gif&zoom=14&size=400x400&key=$googleMapApiKey';
  }
  return 'https://maps.googleapis.com/maps/api/staticmap?center=${latitude},${longitude}&markers=color:red%7Csize:mid%7Clabel:S%7C${latitude},${longitude}&format=gif&zoom=14&size=400x400&key=$googleMapApiKey';
}