This commit is contained in:
Éric Lemoine
2013-03-05 18:11:33 +01:00
parent c2bb8a27f0
commit bac0f304de
121 changed files with 2358 additions and 1139 deletions
+3 -6
View File
@@ -9,19 +9,16 @@ goog.require('ol.projection');
goog.require('ol.source.TiledWMS');
var epsg4326 = ol.projection.getFromCode('EPSG:4326');
var layers = new ol.Collection([
new ol.layer.TileLayer({
source: new ol.source.TiledWMS({
url: 'http://vmap0.tiles.osgeo.org/wms/vmap0',
crossOrigin: null,
version: '1.1.1',
params: {
'VERSION': '1.1.1',
'LAYERS': 'basic',
'FORMAT': 'image/jpeg'
},
projection: epsg4326
}
})
})
]);
@@ -34,7 +31,7 @@ var map = new ol.Map({
scaleLineUnits: ol.control.ScaleLineUnits.DEGREES,
target: 'map',
view: new ol.View2D({
projection: epsg4326,
projection: ol.projection.getFromCode('EPSG:4326'),
center: new ol.Coordinate(0, 0),
zoom: 2
})