Skip to content

Commit c59e7a9

Browse files
[update] 修复classic一些例子的样式
(review by zq)
1 parent 63f47a2 commit c59e7a9

12 files changed

+14
-14
lines changed

examples/classic/addressMatchService.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149

150150
function addLayers() {
151151
map.addLayers([layer, markerlayer]);
152-
map.setCenter(new SuperMap.LonLat(116.383572, 39.914714), 10);
152+
map.setCenter(new SuperMap.LonLat(116.383572, 39.914714), 7);
153153
}
154154

155155
$("#geocode").click(function () {
@@ -211,7 +211,7 @@
211211
"scope": marker
212212
});
213213
markerlayer.addMarker(marker);
214-
map.setCenter(new SuperMap.LonLat(116.383572, 39.914714), 8);
214+
map.setCenter(new SuperMap.LonLat(116.383572, 39.914714), 7);
215215

216216
function openInfoWin() {
217217
closeInfoWin();

examples/classic/controler_drawGeometry.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ <h5 class='panel-title text-center' data-i18n="resources.text_drawGeometry"></h5
102102

103103
map.addLayers([layer, vecotrLayer]);
104104
//显示地图范围
105-
map.setCenter(new SuperMap.LonLat(0, 0), 0);
105+
map.setCenter(new SuperMap.LonLat(11733502.481499, 4614406.969325), 4);
106106
}
107107
function draw_point() {
108108
deactiveAll();

examples/classic/others_SM_OSMBuildings_DrawBuildings.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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), 12);
90+
map.setCenter(new SuperMap.LonLat(12957186.36784, 4852711.53595), 7);
9191
//激活多边形绘制
9292
drawPolygon.activate();
9393
}

examples/classic/others_SM_OSMBuildings_RestData.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
function addLayer() {
4040
map.addLayers([layer]);
4141
//显示地图范围
42-
map.setCenter(new SuperMap.LonLat(12957186.36784, 4852711.53595), 8);
42+
map.setCenter(new SuperMap.LonLat(12957186.36784, 4852711.53595), 7);
4343

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

examples/classic/others_SM_OSMBuildings_addGeoJson.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
//异步加载图层
4040
function addLayer() {
4141
map.addLayers([layer]);
42-
map.setCenter(new SuperMap.LonLat(12957186.36784, 4852711.53595), 12);
42+
map.setCenter(new SuperMap.LonLat(12957186.36784, 4852711.53595), 7);
4343

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

examples/classic/others_d3_dynamicPieChart.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,9 @@
207207

208208
//添加图层
209209
function addLayer() {
210-
var center = new SuperMap.LonLat(9733502.481499, 4614406.969325);
210+
var center = new SuperMap.LonLat(11733502.481499, 4614406.969325);
211211
map.addLayers([layer, d3Layer, utfgrid]);
212-
map.setCenter(center, 1);
212+
map.setCenter(center, 2);
213213
}
214214
</script>
215215
</body>

examples/classic/overlay_telecomIconData.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ <h5 class='panel-title text-center' data-i18n="resources.title_telecomIconData">
119119
onUnselect: onFeatureUnselect
120120
});
121121
map.addControl(select);
122-
map.setCenter(new SuperMap.LonLat(11733502.481499, 4614406.969325), 5);
122+
map.setCenter(new SuperMap.LonLat(11733502.481499, 4614406.969325), 3);
123123
}
124124

125125
//移除整个图层要素

examples/classic/query_vectorLayerRegionName.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ <h5 class='panel-title text-center' data-i18n="resources.title_vectorLayerRegion
274274
//添加图层
275275
function addLayer() {
276276
map.addLayers([layer, vectorLayer]);
277-
map.setCenter(new SuperMap.LonLat(11733502.481499, 4614406.969325), 1);
277+
map.setCenter(new SuperMap.LonLat(11733502.481499, 4614406.969325), 2);
278278
map.addControl(new SuperMap.Control.MousePosition());
279279
}
280280

examples/classic/theme_themeGraduatedSymbol.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ <h5 class='panel-title text-center' data-i18n="resources.text_graduatedSymbol"><
6060

6161
function addLayer() {
6262
map.addLayer(baseLayer);
63-
map.setCenter(new SuperMap.LonLat(11580677, 4591416), 1);
63+
map.setCenter(new SuperMap.LonLat(11580677, 4591416), 2);
6464
map.allOverlays = true;
6565
}
6666
function addThemeGraduatedSymbol() {

examples/classic/theme_themeRange.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ <h5 class='panel-title text-center' data-i18n="resources.title_themeRange"></h5>
5757

5858
function addLayer() {
5959
map.addLayer(baseLayer);
60-
map.setCenter(new SuperMap.LonLat(10080677, 4591416), 1);
60+
map.setCenter(new SuperMap.LonLat(12000677, 4591416), 2);
6161
map.allOverlays = true;
6262
}
6363
function addThemeRange() {

0 commit comments

Comments
 (0)