chrispump/elm-maps-extra/2.0.0

Maps.Marker

Markers are for displaying geographic locations on the map.

type alias Marker msg =
Marker msg

There are currently two types of marker:

  • A default marker
  • A custom HTML marker

Create a marker

create : LatLng -> Marker msg

Create a default style of marker at the given latitude/longitude.

import Maps.Geo
import Maps.Marker


newYork =
    Maps.Geo.latLng 40.73061 -73.935242


newYorkMarker =
    Maps.Marker.create newYork
createCustom : Html msg -> LatLng -> Marker msg

Create a custom HTML marker at the given latitude/longitude.