Don't add mapbox-gl into dependencies

This commit is contained in:
Frederic Junod
2018-11-13 18:06:32 +01:00
parent cac323a785
commit bed9c6b09a
4 changed files with 3 additions and 2 deletions

View File

@@ -10,6 +10,7 @@
"GyroNorm": false,
"jsPDF": false,
"jsts": false,
"mapboxgl": false,
"saveAs": false,
"toastr": false,
"topojson": false,

View File

@@ -5,6 +5,8 @@ shortdesc: Example of a Mapbox-gl-js layer integration.
docs: >
Show how to add a mapbox-gl-js layer in an openlayers map. **Note**: Make sure to get your own Mapbox API key when using this example. No map will be visible when the API key has expired.
tags: "simple, mapbox, vector, tiles"
resources:
- https://unpkg.com/mapbox-gl@0.51.0/dist/mapbox-gl.js
cloak:
- key: ER67WIiPdCQvhgsUjoWK
value: Your Mapbox access token from http://mapbox.com/ here

View File

@@ -3,7 +3,6 @@ import View from '../src/ol/View.js';
import Layer from '../src/ol/layer/Layer';
import {assign} from '../src/ol/obj';
import {getTransform} from '../src/ol/proj';
import mapboxgl from 'mapbox-gl/dist/mapbox-gl-dev';
import SourceState from '../src/ol/source/State';
import {Stroke, Style} from '../src/ol/style.js';
import VectorLayer from '../src/ol/layer/Vector.js';

View File

@@ -36,7 +36,6 @@
"url": "https://github.com/openlayers/openlayers/issues"
},
"dependencies": {
"mapbox-gl": "^0.51.0",
"pbf": "3.1.0",
"pixelworks": "1.1.0",
"rbush": "2.0.2"