From 6bd5f8ccbd8c44c3311ef36b0e2de9ede4fa71ed Mon Sep 17 00:00:00 2001 From: Jakub Hampl Date: Thu, 14 Feb 2019 15:23:49 +0000 Subject: New Style Generator (#8) --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 5a41b02..b65c18a 100644 --- a/README.md +++ b/README.md @@ -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 -- cgit v1.2.3