This module allows you to create markers to be used along with GoogleMaps.Map
import GoogleMaps.Map as Map
import GoogleMaps.Marker as Marker
myMarker : Marker Msg
myMarker =
Marker.init -3.7344654 -38.5057405
|> Marker.onClick MyClickMsg
mapView : String -> Html Msg
mapView apiKey =
Map.init apiKey
|> Map.withMarkers [ myMarker ]
|> Map.toHtmlIt requires the latitude and longitude (both are floats)
Sets a custom image to the marker
Makes the marker draggable
Sets a click event handler