diff options
author | Jakub Hampl <kopomir@gmail.com> | 2019-02-14 15:23:49 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-14 15:23:49 +0000 |
commit | 6bd5f8ccbd8c44c3311ef36b0e2de9ede4fa71ed (patch) | |
tree | de40a36d34cb734c2765a705506436f8b38e28a9 /README.md | |
parent | f0c36a3d49fad46e0fb6cafeb7a021dd5d775993 (diff) |
New Style Generator (#8)
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -32,7 +32,7 @@ probably the easiest is to add: If you are running a module bundler, you should be able to ```javascript -import elmMapbox from "elm-mapbox"; +import {registerCustomElement, registerPorts} from "elm-mapbox"; ``` instead. @@ -58,8 +58,6 @@ It is important that these operations proceed in this order, i.e. the custom ele Additionally, you may pass in your mapbox token as an option through this method: ```javascript -import elmMapbox from "elm-mapbox"; - elmMapbox.registerCustomElement({token: 'pk45.rejkgnwejk'}); var app = Elm.MyApp.init(); elmMapbox.registerPorts(app); @@ -233,7 +231,9 @@ view model = ``` ### [Generating the Elm Style Code](https://code.gampleman.eu/elm-mapbox/style-generator/) -There is a very rough version of a [tool that can help generate styles](https://code.gampleman.eu/elm-mapbox/style-generator/) for this library. It is very alpha at the moment, so please be tolerant with its failures. +There is a very rough version of a [tool that can help generate styles](https://code.gampleman.eu/elm-mapbox/style-generator/) for this library. + +The [examples/Styles](https://github.com/gampleman/elm-mapbox/tree/master/examples/Styles) folder has the default Mapbox styles as code, which you can use to start of your project. ### Support @@ -269,6 +269,6 @@ The `elmMapbox.registerPorts` function accepts an option object that takes the f ### License -(c) Jakub Hampl 2018 +(c) Jakub Hampl 2018, 2019 MIT License |