From 1deabaa1c05633b4e2f914d6ee755212ca2e7023 Mon Sep 17 00:00:00 2001 From: Olivier Guyot Date: Mon, 13 May 2019 11:37:05 +0200 Subject: [PATCH] Mapbox example / add mapbox css to avoid warning in console Also remove manipulation of the mapbox canvas (not necessary anymore). --- examples/mapbox-layer.html | 1 + examples/mapbox-layer.js | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/mapbox-layer.html b/examples/mapbox-layer.html index 3cc356148b..f136feb303 100644 --- a/examples/mapbox-layer.html +++ b/examples/mapbox-layer.html @@ -7,6 +7,7 @@ docs: > tags: "simple, mapbox, vector, tiles" resources: - https://unpkg.com/mapbox-gl@0.54.0/dist/mapbox-gl.js + - https://unpkg.com/mapbox-gl@0.54.0/dist/mapbox-gl.css cloak: - key: ER67WIiPdCQvhgsUjoWK value: Your Mapbox access token from http://mapbox.com/ here diff --git a/examples/mapbox-layer.js b/examples/mapbox-layer.js index 5612fbc6a9..2076c38603 100644 --- a/examples/mapbox-layer.js +++ b/examples/mapbox-layer.js @@ -58,7 +58,6 @@ class Mapbox extends Layer { this.mbmap = new mapboxgl.Map(options); this.mbmap.on('load', function() { - this.mbmap.getCanvas().remove(); this.loaded = true; this.map_.render(); this.mbmap.getContainer().querySelector('.mapboxgl-control-container').remove();