From a312ae381ff9bbaa5c7c4b5633b9bc513b40096f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Dietrich?= Date: Thu, 12 Sep 2019 18:41:26 +0200 Subject: start using example 04 --- examples/index.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'examples') diff --git a/examples/index.js b/examples/index.js index c1efd55..b76d28f 100644 --- a/examples/index.js +++ b/examples/index.js @@ -1,9 +1,11 @@ import { registerCustomElement, registerPorts } from "elm-mapbox"; import "mapbox-gl/dist/mapbox-gl.css"; -import { Elm } from "./Example02.elm"; +import { Elm } from "./Example04.elm"; + +const token = "pk.eyJ1IjoiZW..."; -const token = process.env.MAPBOX_TOKEN; registerCustomElement({token}); -var app = Elm.Example02.init({node: document.body}); -// registerPorts(app); +var app = Elm.Example04.init({node: document.body}); + +registerPorts(app); -- cgit v1.2.3