Skip to content

Commit 06549ad

Browse files
committed
恢复iamgeserver 服务类,新增mapbox mvt style 示例,fix turf 示例。 review by caoxinke.
1 parent 3748bea commit 06549ad

22 files changed

+19294
-19223
lines changed

dist/iclient9-openlayers.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/iclient9-openlayers.js

Lines changed: 18826 additions & 18845 deletions
Large diffs are not rendered by default.

dist/iclient9-openlayers.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/iclient9-openlayers.min.js

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

examples/leaflet/turf_analysis.html

Lines changed: 147 additions & 86 deletions
Large diffs are not rendered by default.

examples/mapboxgl/config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,12 @@ var exampleConfig = {
331331
name_en: "style switch",
332332
thumbnail: "mvt_changeStyle.png",
333333
fileName: "mvtVectorTile_changeStyle"
334+
},
335+
{
336+
name: "UGCV5(MVT)",
337+
name_en: "UGCV5(MVT)",
338+
thumbnail: "mvt_UGCV5.png",
339+
fileName: "mvtVectorTile_UGCV5"
334340
}
335341
]
336342
},

examples/mapboxgl/img/mvt_UGCV5.png

13 KB
Loading
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<html>
2+
<head>
3+
<meta charset='utf-8'/>
4+
<title>UGCV5(MVT)</title>
5+
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no'/>
6+
<script type="text/javascript" exclude='iclient9-mapboxgl' src="../../dist/include-mapboxgl.js"></script>
7+
<style>
8+
body {
9+
margin: 0;
10+
padding: 0;
11+
}
12+
13+
#map {
14+
position: absolute;
15+
top: 0;
16+
bottom: 0;
17+
width: 100%;
18+
}
19+
</style>
20+
</head>
21+
<body>
22+
<div id='map'></div>
23+
<script type="text/javascript">
24+
var host = window.isLocal ? window.server : "http://117.122.248.69:8090";
25+
26+
var map = new mapboxgl.Map({
27+
container: 'map', // container id
28+
style: host + '/iserver/services/map-mvt-China/rest/maps/China/tileFeature/vectorstyles.json?type=MapBox_GL&styleonly=true',
29+
center: [120.143, 30.236], // starting position
30+
zoom: 0,
31+
attributionControl: false
32+
});
33+
map.addControl(new mapboxgl.NavigationControl(), 'top-left');
34+
35+
</script>
36+
</body>
37+
</html>

examples/openlayers/01_imageMapLayer.html

Lines changed: 0 additions & 31 deletions
This file was deleted.

examples/openlayers/SummaryMeshJobService.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,13 @@ <h3 class="panel-title">点聚合分析</h3>
165165
return response.json();
166166
}).then(function (result) {
167167
var mapUrl = result[0].path;
168-
layer = new ol.layer.Image({
169-
source: new ol.source.ImageSuperMapRest({url: mapUrl})
168+
new ol.supermap.MapService(mapUrl).getMapInfo(function (mapInfo) {
169+
layer = new ol.layer.Tile({
170+
source: new ol.source.ImageSuperMapRest(ol.source.ImageSuperMapRest.optionsFromMapJSON(mapUrl, mapInfo.result))
171+
});
172+
map.addLayer(layer);
173+
widgets.loader.removeLoader();
170174
});
171-
map.addLayer(layer);
172-
widgets.loader.removeLoader();
173175
});
174176
}
175177
});

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