aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md10
1 files changed, 5 insertions, 5 deletions
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