Skip to content

Commit 3d90b74

Browse files
author
caoxinke
committed
fix 错误提交的openlayer4326瓦片出图的例子。
1 parent 6038ab4 commit 3d90b74

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

examples/openlayers/01_tiledMapLayer4326.html

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,17 @@
1616
map = new ol.Map({
1717
target: 'map',
1818
view: new ol.View({
19-
center: [12957388, 4853991],
20-
zoom: 5,
21-
projection: 'EPSG:3857'
19+
center: [0, 0],
20+
zoom: 2,
21+
projection: 'EPSG:4326'
2222
})
2323
});
2424
var layer = new ol.layer.Tile({
2525
source: new ol.source.TileSuperMapRest({
2626
url: url,
27-
wrapX: true,
28-
prjCoordSys: "{\"epsgCode\":3857}",
29-
origin: [-20037508.34, 20037508.34]
27+
wrapX: true
3028
}),
31-
projection: 'EPSG:3857'
29+
projection: 'EPSG:4326'
3230
});
3331
map.addLayer(layer);
3432
</script>

0 commit comments

Comments
 (0)