We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ba75cb commit 42236f6Copy full SHA for 42236f6
examples/openlayers/01_tiledMapLayerNoProj.html
@@ -12,8 +12,11 @@
12
<body style="margin: 0; overflow: hidden; background: #fff; width: 100%; height: 100%; position: absolute; top: 0">
13
<div id="map" style="width: 100%; height: 100%"></div>
14
<script type="text/javascript">
15
- var url = 'https://iserver.supermap.io/iserver/services/map-changchun/rest/maps/长春市区图';
16
- // 方式一:1.调用 ol.supermap.initMap,根据 SuperMap iServer 地图服务的地图信息,创建地图和底图
+ var map,
+ url =
17
+ (window.isLocal ? window.server : 'https://iserver.supermap.io') +
18
+ '/iserver/services/map-changchun/rest/maps/长春市区图';
19
+ // 方式一:1.调用 ol.supermap.initMap,根据 SuperMap iServer 地图服务的地图信息,创建地图和底图
20
ol.supermap.initMap(url, {
21
mapOptions: {
22
controls: ol.control
0 commit comments