OpenStreetMap reprojection example

This commit is contained in:
Dalibor Janák
2015-09-09 11:00:10 +02:00
committed by Petr Sloup
parent 76974a5888
commit 043b206705
2 changed files with 32 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
goog.require('ol.Map');
goog.require('ol.View');
goog.require('ol.layer.Tile');
goog.require('ol.source.OSM');
var map = new ol.Map({
layers: [
new ol.layer.Tile({
source: new ol.source.OSM()
})
],
renderer: common.getRendererFromQueryString(),
target: 'map',
view: new ol.View({
projection: 'EPSG:4326',
center: [0, 0],
zoom: 1
})
});