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.toHtmlThis type is latitude in float format as expected by Google Maps.
This type is longitude in float format as expected by Google Maps.
It requires the latitude and longitude (both are floats)
This type wraps the available animations for markers in Google Maps, "DROP" or "BOUNCE" or nothing.
Sets a custom image to the marker
Makes the marker draggable
Sets an on hover title for the marker
Sets the animation for the marker.
Sets the content of the Info Window.
When empty, disables the info window.
Sets a click event handler
Allows to enter/leave a Info Window specified in withInfoWindow
Opaque type that upholds the marker description.