Skip to content

Commit dae1142

Browse files
committed
【update】 更新 mbgl 端数据流,热力图,点聚合,echartsLayer 图层微件范例参数及 webmap 组件相关参数 review by songym
1 parent 94aca74 commit dae1142

29 files changed

+9211
-5440
lines changed

dist/mapboxgl/iclient9-mapboxgl-widgets-vue.css

Lines changed: 189 additions & 923 deletions
Large diffs are not rendered by default.

dist/mapboxgl/iclient9-mapboxgl-widgets-vue.js

Lines changed: 8922 additions & 4417 deletions
Large diffs are not rendered by default.

dist/mapboxgl/iclient9-mapboxgl-widgets-vue.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/mapboxgl/iclient9-mapboxgl-widgets-vue.min.js

Lines changed: 11 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/mapboxgl/include-mapboxgl.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
if (inArray(includes, 'echarts')) {
7272
inputScript("https://cdn.jsdelivr.net/npm/echarts@4.1.0/dist/echarts.js");
7373
inputScript("http://iclient.supermap.io/libs/echartsLayer/EchartsLayer.js");
74+
inputScript("http://iclient.supermap.io/libs/echarts-liquidfill/echarts-liquidfill.js");
7475
}
7576
if (inArray(includes, 'echarts-vue')) {
7677
inputScript("https://cdn.jsdelivr.net/npm/echarts@4.1.0/dist/echarts.js");

examples/mapboxgl/widgets_basic_vue.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<body>
5050

5151
<div id="main">
52-
<sm-web-map :web-map-options="webOptions" map-id="1649097980" ref="map"></sm-web-map>
52+
<sm-web-map server-url="http://support.supermap.com.cn:8092/" map-id="1649097980" ref="map"></sm-web-map>
5353
<el-card class="box-card">
5454
<!-- 图标微件 -->
5555
<sm-icon class-name="location" size="18px" text-color='rgb(63, 177, 227)' :style="{float: 'left'}">
@@ -84,9 +84,6 @@
8484
el: '#main',
8585
data() {
8686
return {
87-
webOptions: {
88-
server: 'http://support.supermap.com.cn:8092/'
89-
},
9087
name: "北京/首都",
9188
passengerNumber: 95786296,
9289
goodsNumber: 94393454,

examples/mapboxgl/widgets_chart_vue.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%;position: absolute;top: 0;">
2222
<div id="main">
23-
<sm-web-map :web-map-options="{server: 'http://support.supermap.com.cn:8092/'}" map-id="1649097980"></sm-web-map>
23+
<sm-web-map server-url='http://support.supermap.com.cn:8092/' map-id="1649097980"></sm-web-map>
2424
<sm-chart
2525
icon-class=""
2626
:style="chartStyle"

examples/mapboxgl/widgets_cluster_vue.html

Lines changed: 64 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -3,73 +3,73 @@
33
*********************************************************************-->
44
<!DOCTYPE html>
55
<html>
6-
<head>
7-
<meta charset="UTF-8" />
8-
<title data-i18n="resources.title_widgetsCluster_Vue"></title>
9-
<script type="text/javascript" include="vue,jquery,papaparse" src="../js/include-web.js"></script>
10-
<script
11-
include="iclient9-mapboxgl-widgets-vue,mapbox-gl-enhance"
12-
src="../../dist/mapboxgl/include-mapboxgl.js"
13-
></script>
14-
<style>
15-
#main {
16-
margin: 0 auto;
17-
width: 100%;
18-
height: 100%;
19-
}
20-
</style>
21-
</head>
6+
<head>
7+
<meta charset="UTF-8" />
8+
<title data-i18n="resources.title_widgetsCluster_Vue"></title>
9+
<script type="text/javascript" include="vue,jquery,papaparse" src="../js/include-web.js"></script>
10+
<script
11+
include="iclient9-mapboxgl-widgets-vue,mapbox-gl-enhance"
12+
src="../../dist/mapboxgl/include-mapboxgl.js"
13+
></script>
14+
<style>
15+
#main {
16+
margin: 0 auto;
17+
width: 100%;
18+
height: 100%;
19+
}
20+
</style>
21+
</head>
2222

23-
<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%;position: absolute;top: 0;">
24-
<div id="main">
25-
<sm-web-map :web-map-options="{server: 'http://support.supermap.com.cn:8092/'}" map-id="676816598">
26-
<sm-cluster-layer :data="culsterLayerData" :cluster-radius="100"></sm-cluster-layer>
27-
</sm-web-map>
28-
</div>
29-
<script>
30-
$.get('../data/chinaEarthquake.csv', function(response) {
31-
var dataObj = Papa.parse(response, {
32-
skipEmptyLines: true,
33-
header: true,
34-
});
23+
<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%;position: absolute;top: 0;">
24+
<div id="main">
25+
<sm-web-map server-url="http://support.supermap.com.cn:8092/" map-id="676816598">
26+
<sm-cluster-layer :data="culsterLayerData" :radius="100"></sm-cluster-layer>
27+
</sm-web-map>
28+
</div>
29+
<script>
30+
$.get("../data/chinaEarthquake.csv", function(response) {
31+
var dataObj = Papa.parse(response, {
32+
skipEmptyLines: true,
33+
header: true
34+
});
3535

36-
var data = dataObj.data;
37-
var geojson = {
38-
type: 'FeatureCollection',
39-
features: [],
40-
};
36+
var data = dataObj.data;
37+
var geojson = {
38+
type: "FeatureCollection",
39+
features: []
40+
};
4141

42-
for (var i = 0; i < data.length; i++) {
43-
var item = data[i];
44-
var date = new Date(item.date);
45-
var year = date.getFullYear();
42+
for (var i = 0; i < data.length; i++) {
43+
var item = data[i];
44+
var date = new Date(item.date);
45+
var year = date.getFullYear();
4646

47-
//2w+地震数据
48-
if (year > 2000 && year < 2015) {
49-
var feature = {
50-
type: 'feature',
51-
geometry: {
52-
type: 'Point',
53-
coordinates: [],
54-
},
55-
properties: {
56-
value: parseFloat(item.level),
57-
},
58-
};
59-
feature.geometry.coordinates = [parseFloat(item.X), parseFloat(item.Y)];
60-
geojson.features.push(feature);
61-
}
62-
}
47+
//2w+地震数据
48+
if (year > 2000 && year < 2015) {
49+
var feature = {
50+
type: "feature",
51+
geometry: {
52+
type: "Point",
53+
coordinates: []
54+
},
55+
properties: {
56+
value: parseFloat(item.level)
57+
}
58+
};
59+
feature.geometry.coordinates = [parseFloat(item.X), parseFloat(item.Y)];
60+
geojson.features.push(feature);
61+
}
62+
}
6363

64-
new Vue({
65-
el: '#main',
66-
data() {
67-
return {
68-
culsterLayerData: geojson,
69-
};
70-
},
71-
});
72-
});
73-
</script>
74-
</body>
64+
new Vue({
65+
el: "#main",
66+
data() {
67+
return {
68+
culsterLayerData: geojson
69+
};
70+
}
71+
});
72+
});
73+
</script>
74+
</body>
7575
</html>

examples/mapboxgl/widgets_dataflow_vue.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<div id="main">
2525
<sm-map :map-options="mapOptions">
2626
<sm-data-flow-layer
27-
:data-flow-url="dataFlowUrl"
27+
:service-url="dataFlowUrl"
2828
:layer-style="layerStyle"
2929
register-token="0ra2250-rPu6ZnqHPKqcqDjGkDGDv3bg5HHy1SNNXf79OlN0ArG07bq3cGFz0v-nfBm2RAnYJ3LGBsuiptH43g.."
3030
></sm-data-flow-layer>

examples/mapboxgl/widgets_demo_vue.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@
217217
<el-row>
218218
<div class="map-wrap">
219219
<sm-web-map
220-
:web-map-options="{server: 'http://support.supermap.com.cn:8092'}"
220+
server-url='http://support.supermap.com.cn:8092'
221221
map-id="213343819"
222222
>
223223
<sm-zoom></sm-zoom>

0 commit comments

Comments
 (0)