Skip to content

Commit 9c9aaed

Browse files
committed
【examples】优化示例
1 parent 485dc6c commit 9c9aaed

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

examples/classic/others_SM_OSMBuildings_DrawBuildings.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ <h5 class='panel-title text-center'>Supermap OSM BUildings Draw Data</h5>
5252
<script type="text/javascript">
5353
var map, layer, polygonLayer, drawPolygon, osm, featureID = 0,
5454
host = window.isLocal ? window.server : "https://iserver.supermap.io",
55-
url = host + "/iserver/services/map-china/rest/maps/China";
55+
url = host + "/iserver/services/map-china400/rest/maps/China";
5656

5757
//检测浏览器是否支持canves,Buildings 需要Canvas绘制
5858
if (!document.createElement('canvas').getContext) {
@@ -87,7 +87,7 @@ <h5 class='panel-title text-center'>Supermap OSM BUildings Draw Data</h5>
8787
//异步加载图层
8888
function addLayer() {
8989
map.addLayers([layer, polygonLayer]);
90-
map.setCenter(new SuperMap.LonLat(12957186.36784, 4852711.53595), 7);
90+
map.setCenter(new SuperMap.LonLat(12957186.36784, 4852711.53595), 12);
9191
//激活多边形绘制
9292
drawPolygon.activate();
9393
}

examples/classic/others_SM_OSMBuildings_RestData.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<script type="text/javascript">
1515
var map, layer, osm, dataurl,alertDiv,
1616
host = window.isLocal ? window.server : "https://iserver.supermap.io";
17-
url = host + "/iserver/services/map-china/rest/maps/China";
17+
url = host + "/iserver/services/map-china400/rest/maps/China";
1818
dataurl = host + "/iserver/services/data-jingjin/rest/data";
1919

2020
//检测浏览器是啥支持canves Buildings 需要Canvas绘制
@@ -39,7 +39,7 @@
3939
function addLayer() {
4040
map.addLayers([layer]);
4141
//显示地图范围
42-
map.setCenter(new SuperMap.LonLat(12957186.36784, 4852711.53595), 7);
42+
map.setCenter(new SuperMap.LonLat(12957186.36784, 4852711.53595), 8);
4343

4444
// SQL 查询方式从服务器端获取数据
4545
getFeatureBySQL();

examples/classic/others_SM_OSMBuildings_addGeoJson.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<script type="text/javascript">
1616
var map, layer, osm,
1717
host = window.isLocal ? window.server : "https://iserver.supermap.io";
18-
url = host + "/iserver/services/map-china/rest/maps/China";
18+
url = host + "/iserver/services/map-china400/rest/maps/China";
1919

2020
//检测浏览器是啥支持canves Buildings 需要Canvas绘制
2121
if (!document.createElement('canvas').getContext) {
@@ -39,7 +39,7 @@
3939
//异步加载图层
4040
function addLayer() {
4141
map.addLayers([layer]);
42-
map.setCenter(new SuperMap.LonLat(12957186.36784, 4852711.53595), 7);
42+
map.setCenter(new SuperMap.LonLat(12957186.36784, 4852711.53595), 12);
4343

4444
// Supermap 底图上 添加默认的 OSMBuildings geojson 数据
4545
var geoJSON = {

0 commit comments

Comments
 (0)