chrispump/elm-maps-extra/1.0.0

NOTE: the latest version is 2.0.0

elm-maps-extra

An Elm library for interactive maps, originally developed by kennib and further modified by 4onen.

This library allows you to embed interactive, tile-based maps into your Elm applications with support for markers and now also polygonal areas.


🚀 Getting Started

A simple map can be created like this:

import Browser
import Maps

main : Program () (Maps.Model msg) (Maps.Msg msg)
main =
    Browser.element
        { init = \_ -> ( Maps.defaultModel, Cmd.none )
        , update = Maps.update
        , view = Maps.view
        , subscriptions = Maps.subscriptions
        }

📦 Examples

Below are working examples showcasing the different features of the library:

ExampleSource CodeLive Demo
Basic MapExample.elmLive
Fullscreen MapFullscreen.elmLive
Map MarkersMarkers.elmLive
Custom MarkersCustomMarkers.elmLive
Geocode SearchSearch.elmLive
Geocode + MarkersSearchMarkers.elmLive
Draw AreasAreas.elm-

📚 Documentation

You can find full documentation of the latest API on the Elm package site.


🙏 Credits