File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 3232 " Map Data <span>© <a href='http://support.supermap.com.cn/product/iServer.aspx' target='_blank'>SuperMap iServer</a></span> " ;
3333
3434 // 方式一: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- } )
35+ maplibregl . supermap . initMap ( host + '/iserver/services/map-china/rest/maps/China' , { mapOptions : { zoom : 4 } } )
36+ . then ( function ( result ) {
37+ var map = result . map ;
38+ map . addControl ( new maplibregl . NavigationControl ( ) , 'top-left' ) ;
39+ } )
3940
4041 // 方法二: 直接用 maplibregl.Map 初始化
4142 // var map = new maplibregl.Map({
You can’t perform that action at this time.
0 commit comments