Mapbox example / add mapbox css to avoid warning in console

Also remove manipulation of the mapbox canvas (not necessary anymore).
This commit is contained in:
Olivier Guyot
2019-05-13 11:37:05 +02:00
parent 88b6b18cc0
commit 1deabaa1c0
2 changed files with 1 additions and 1 deletions

View File

@@ -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

View File

@@ -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();