Skip to content

Commit f320cbd

Browse files
committed
ol-mapbox-style用的是插件5.0.0beta的ol,先从外部引入
1 parent 530528a commit f320cbd

File tree

7 files changed

+920
-3274
lines changed

7 files changed

+920
-3274
lines changed

build/webpack.config.openlayers.js

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -38,27 +38,8 @@ module.exports = {
3838
'mapv': "function(){try{return mapv}catch(e){return {}}}()",
3939
'elasticsearch': 'function(){try{return elasticsearch}catch(e){return {}}}()',
4040
'@turf/turf': "function(){try{return turf}catch(e){return {}}}()",
41-
//for ol-mapbox-style
42-
'ol/style/style': 'ol.style.Style',
43-
'ol/style/circle': 'ol.style.Circle',
44-
'ol/style/icon': 'ol.style.Icon',
45-
'ol/style/stroke': 'ol.style.Stroke',
46-
'ol/style/fill': 'ol.style.Fill',
47-
'ol/style/text': 'ol.style.Text',
48-
'ol/geom/point': 'ol.geom.Point',
49-
'ol/proj': 'ol.proj',
50-
'ol/tilegrid': 'ol.tilegrid',
51-
'ol/format/geojson': 'ol.format.GeoJSON',
52-
'ol/format/mvt': 'ol.format.MVT',
53-
'ol/canvasmap': 'ol.CanvasMap',
54-
'ol/observable': 'ol.Observable',
55-
'ol/layer/tile': 'ol.layer.Tile',
56-
'ol/layer/vector': 'ol.layer.Vector',
57-
'ol/layer/vectortile': 'ol.layer.VectorTile',
58-
'ol/source/tilejson': 'ol.source.TileJSON',
59-
'ol/source/vector': 'ol.source.Vector',
60-
'ol/source/vectortile': 'ol.source.VectorTile',
61-
'ol/source/xyz': 'ol.source.XYZ'
41+
'ol-mapbox-style':"function(){try{return olms}catch(e){return {}}}()",
42+
'ol-mapbox-style/stylefunction':"function(){try{return olms.stylefunction}catch(e){return {}}}()"
6243
},
6344

6445
module: {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy