We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8096f5c commit 5dcb407Copy full SHA for 5dcb407
1 file changed
examples/maplibregl/01_tiledMapLayer.html
@@ -32,10 +32,11 @@
32
" Map Data <span>© <a href='http://support.supermap.com.cn/product/iServer.aspx' target='_blank'>SuperMap iServer</a></span> ";
33
34
// 方式一:1.调用 maplibregl.supermap.initMap,根据 SuperMap iServer 地图服务的地图信息,创建地图和底图
35
- maplibregl.supermap.initMap(host + '/iserver/services/map-china/rest/maps/China').then(function (result) {
36
- var map = result.map;
37
- map.addControl(new maplibregl.NavigationControl(), 'top-left');
38
- })
+ maplibregl.supermap.initMap(host + '/iserver/services/map-china/rest/maps/China', { mapOptions: { zoom: 4 } })
+ .then(function (result) {
+ var map = result.map;
+ map.addControl(new maplibregl.NavigationControl(), 'top-left');
39
+ })
40
41
// 方法二: 直接用 maplibregl.Map 初始化
42
// var map = new maplibregl.Map({
0 commit comments