Disclaimer: This is a experimental package, but you are more than welcome to open issues and pull requests in order to request new features.
googleMapView : String -> Html Msg
googleMapView googleMapKey =
Map.init googleMapKey
|> Map.toHtml
Please, take a look at examples/src/Main.elm
With the @PaackEng
npm registry configured:
npm install --save-dev @webcomponents/webcomponentsjs
npm install --save-dev @PaackEng/google-map\#v3.0.3
elm install PaackEng/elm-google-maps
You have to import both items (the order matters)
- @webcomponents/webcomponentsjs/custom-elements-es5-adapter
- @PaackEng/google-map
Add those lines in index.js
import '@webcomponents/webcomponentsjs/custom-elements-es5-adapter';
import '@PaackEng/google-map';
Disclaimer: You must install create-elm-app
cd examples/ && ELM_APP_GOOGLE_MAP_KEY=your_key elm-app start