Skip to content

Commit 1ea7fb6

Browse files
author
caoxinke@supermap.com
committed
添加OpenLayers、Leaflet对接Turf.js的示例。
1 parent 2c75190 commit 1ea7fb6

File tree

17 files changed

+14688
-14107
lines changed

17 files changed

+14688
-14107
lines changed

build/deps.js

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,16 @@ deps = {
406406
"name": "L.supermap.mapVLayer",
407407
"des": "百度MapV可视化效果"
408408
}]
409+
},
410+
"Turf": {
411+
"name": "Turf",
412+
"src": [
413+
'./src/leaflet/overlay/TurfLayer.js'
414+
],
415+
"modules": [{
416+
"name": "L.supermap.turfLayer",
417+
"des": "客户端空间分析js库"
418+
}]
409419
}
410420
},
411421

@@ -605,7 +615,7 @@ deps = {
605615
"des": "Online服务"
606616
}]
607617
},
608-
"iManager": {
618+
"iManager": {
609619
"name": "iManager服务",
610620
"src": [
611621
"./src/common/iManager/iManager.js"
@@ -710,6 +720,16 @@ deps = {
710720
"name": "ol.source.Mapv",
711721
"des": "百度MapV可视化效果"
712722
}]
723+
},
724+
"Turf": {
725+
"name": "Turf",
726+
"src": [
727+
"./src/openlayers/overlay/turf.js",
728+
],
729+
"modules": [{
730+
"name": "ol.source.Turf",
731+
"des": "客户端空间分析js库"
732+
}]
713733
}
714734
},
715735
"Control": {

build/webpack.config.leaflet.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ module.exports = {
2626
'leaflet': 'L',
2727
'echarts': 'function(){try{return echarts}catch(e){return {}}}()',
2828
'mapv': "function(){try{return mapv}catch(e){return {}}}()",
29-
'elasticsearch': 'function(){try{return elasticsearch}catch(e){return {}}}()'
29+
'elasticsearch': 'function(){try{return elasticsearch}catch(e){return {}}}()',
30+
'turf': "function(){try{return turf}catch(e){return {}}}()"
3031
},
3132

3233
module: {

build/webpack.config.openlayers.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ module.exports = {
2525
'openlayers/dist/ol-debug': 'ol',
2626
'echarts': 'function(){try{return echarts}catch(e){return {}}}()',
2727
'mapv': "function(){try{return mapv}catch(e){return {}}}()",
28-
'elasticsearch': 'function(){try{return elasticsearch}catch(e){return {}}}()'
28+
'elasticsearch': 'function(){try{return elasticsearch}catch(e){return {}}}()',
29+
'turf': "function(){try{return turf}catch(e){return {}}}()",
2930
},
3031

3132
module: {

0 commit comments

Comments
 (0)