Remove question mark from wms urls (see #85)

This commit is contained in:
Frederic Junod
2012-11-08 09:02:03 +01:00
parent c9f4454399
commit 6eb505eb2b

View File

@@ -22,7 +22,7 @@ var extent = new ol.Extent(420000, 30000, 900000, 350000);
var layers = new ol.Collection([ var layers = new ol.Collection([
new ol.layer.TileLayer({ new ol.layer.TileLayer({
source: new ol.source.TiledWMS({ source: new ol.source.TiledWMS({
url: 'http://wms.geo.admin.ch/?', url: 'http://wms.geo.admin.ch/',
attributions: [new ol.Attribution( attributions: [new ol.Attribution(
'© ' + '© ' +
'<a href="http://www.geo.admin.ch/internet/geoportal/en/home.html">' + '<a href="http://www.geo.admin.ch/internet/geoportal/en/home.html">' +
@@ -37,7 +37,7 @@ var layers = new ol.Collection([
}), }),
new ol.layer.TileLayer({ new ol.layer.TileLayer({
source: new ol.source.TiledWMS({ source: new ol.source.TiledWMS({
url: 'http://wms.geo.admin.ch/?', url: 'http://wms.geo.admin.ch/',
attributions: [new ol.Attribution( attributions: [new ol.Attribution(
'&copy; ' + '&copy; ' +
'<a href="http://www.geo.admin.ch/internet/geoportal/en/home.html">' + '<a href="http://www.geo.admin.ch/internet/geoportal/en/home.html">' +