This commit is contained in:
Tom Payne
2012-11-03 13:38:05 +01:00
parent dc9c5b3cfe
commit 92cad64411
3 changed files with 118 additions and 118 deletions

View File

@@ -27,8 +27,10 @@ var layers = new ol.Collection([
'© ' +
'<a href="http://www.geo.admin.ch/internet/geoportal/en/home.html">' +
'Pixelmap 1:1000000 / geo.admin.ch</a>')],
crossOrigin: null,
params: {'LAYERS': 'ch.swisstopo.pixelkarte-farbe-pk1000.noscale'},
params: {
'LAYERS': 'ch.swisstopo.pixelkarte-farbe-pk1000.noscale',
'FORMAT': 'image/jpeg'
},
projection: epsg21781,
extent: extent
})
@@ -40,7 +42,6 @@ var layers = new ol.Collection([
'&copy; ' +
'<a href="http://www.geo.admin.ch/internet/geoportal/en/home.html">' +
'National parks / geo.admin.ch</a>')],
crossOrigin: null,
params: {'LAYERS': 'ch.bafu.schutzgebiete-paerke_nationaler_bedeutung'},
projection: epsg21781,
extent: extent
@@ -49,7 +50,6 @@ var layers = new ol.Collection([
]);
var map = new ol.Map({
renderer: ol.RendererHint.DOM,
center: new ol.Coordinate(660000, 190000),
projection: epsg21781,
// By setting userProjection to the same as projection, we do not need