Fix attributions links for WMS layers from swisstopo

This commit is contained in:
Frederic Junod
2020-12-01 13:48:32 +01:00
parent dcaa7096bb
commit 6d04c360be
4 changed files with 17 additions and 17 deletions

View File

@@ -92,8 +92,8 @@ layers['wms4326'] = new TileLayer({
layers['wms21781'] = new TileLayer({ layers['wms21781'] = new TileLayer({
source: new TileWMS({ source: new TileWMS({
attributions: attributions:
'© <a href="http://www.geo.admin.ch/internet/geoportal/' + '© <a href="https://shop.swisstopo.admin.ch/en/products/maps/national/lk1000"' +
'en/home.html">Pixelmap 1:1000000 / geo.admin.ch</a>', 'target="_blank">Pixelmap 1:1000000 / geo.admin.ch</a>',
crossOrigin: 'anonymous', crossOrigin: 'anonymous',
params: { params: {
'LAYERS': 'ch.swisstopo.pixelkarte-farbe-pk1000.noscale', 'LAYERS': 'ch.swisstopo.pixelkarte-farbe-pk1000.noscale',

View File

@@ -53,8 +53,8 @@ const layers = [
url: 'https://wms.geo.admin.ch/', url: 'https://wms.geo.admin.ch/',
crossOrigin: 'anonymous', crossOrigin: 'anonymous',
attributions: attributions:
'© <a href="http://www.geo.admin.ch/internet/geoportal/' + '© <a href="https://shop.swisstopo.admin.ch/en/products/maps/national/lk1000"' +
'en/home.html">Pixelmap 1:1000000 / geo.admin.ch</a>', 'target="_blank">Pixelmap 1:1000000 / geo.admin.ch</a>',
params: { params: {
'LAYERS': 'ch.swisstopo.pixelkarte-farbe-pk1000.noscale', 'LAYERS': 'ch.swisstopo.pixelkarte-farbe-pk1000.noscale',
'FORMAT': 'image/jpeg', 'FORMAT': 'image/jpeg',
@@ -68,9 +68,9 @@ const layers = [
url: 'https://wms.geo.admin.ch/', url: 'https://wms.geo.admin.ch/',
crossOrigin: 'anonymous', crossOrigin: 'anonymous',
attributions: attributions:
'© <a href="http://www.geo.admin.ch/internet/geoportal/' + '© <a href="https://www.hydrodaten.admin.ch/en/notes-on-the-flood-alert-maps.html"' +
'en/home.html">National parks / geo.admin.ch</a>', 'target="_blank">Flood Alert / geo.admin.ch</a>',
params: {'LAYERS': 'ch.bafu.schutzgebiete-paerke_nationaler_bedeutung'}, params: {'LAYERS': 'ch.bafu.hydroweb-warnkarte_national'},
serverType: 'mapserver', serverType: 'mapserver',
}), }),
}), }),

View File

@@ -42,8 +42,8 @@ const layers = [
url: 'https://wms.geo.admin.ch/', url: 'https://wms.geo.admin.ch/',
crossOrigin: 'anonymous', crossOrigin: 'anonymous',
attributions: attributions:
'© <a href="http://www.geo.admin.ch/internet/geoportal/' + '© <a href="https://shop.swisstopo.admin.ch/en/products/maps/national/lk1000"' +
'en/home.html">Pixelmap 1:1000000 / geo.admin.ch</a>', 'target="_blank">Pixelmap 1:1000000 / geo.admin.ch</a>',
params: { params: {
'LAYERS': 'ch.swisstopo.pixelkarte-farbe-pk1000.noscale', 'LAYERS': 'ch.swisstopo.pixelkarte-farbe-pk1000.noscale',
'FORMAT': 'image/jpeg', 'FORMAT': 'image/jpeg',
@@ -57,9 +57,9 @@ const layers = [
url: 'https://wms.geo.admin.ch/', url: 'https://wms.geo.admin.ch/',
crossOrigin: 'anonymous', crossOrigin: 'anonymous',
attributions: attributions:
'© <a href="http://www.geo.admin.ch/internet/geoportal/' + '© <a href="https://www.hydrodaten.admin.ch/en/notes-on-the-flood-alert-maps.html"' +
'en/home.html">National parks / geo.admin.ch</a>', 'target="_blank">Flood Alert / geo.admin.ch</a>',
params: {'LAYERS': 'ch.bafu.schutzgebiete-paerke_nationaler_bedeutung'}, params: {'LAYERS': 'ch.bafu.hydroweb-warnkarte_national'},
serverType: 'mapserver', serverType: 'mapserver',
}), }),
}), }),

View File

@@ -9,8 +9,8 @@ const layers = [
new TileLayer({ new TileLayer({
source: new TileWMS({ source: new TileWMS({
attributions: attributions:
'© <a href="http://www.geo.admin.ch/internet/geoportal/' + '© <a href="https://shop.swisstopo.admin.ch/en/products/maps/national/lk1000"' +
'en/home.html">Pixelmap 1:1000000 / geo.admin.ch</a>', 'target="_blank">Pixelmap 1:1000000 / geo.admin.ch</a>',
crossOrigin: 'anonymous', crossOrigin: 'anonymous',
params: { params: {
'LAYERS': 'ch.swisstopo.pixelkarte-farbe-pk1000.noscale', 'LAYERS': 'ch.swisstopo.pixelkarte-farbe-pk1000.noscale',
@@ -22,10 +22,10 @@ const layers = [
new ImageLayer({ new ImageLayer({
source: new ImageWMS({ source: new ImageWMS({
attributions: attributions:
'© <a href="http://www.geo.admin.ch/internet/geoportal/' + '© <a href="https://www.hydrodaten.admin.ch/en/notes-on-the-flood-alert-maps.html"' +
'en/home.html">National parks / geo.admin.ch</a>', 'target="_blank">Flood Alert / geo.admin.ch</a>',
crossOrigin: 'anonymous', crossOrigin: 'anonymous',
params: {'LAYERS': 'ch.bafu.schutzgebiete-paerke_nationaler_bedeutung'}, params: {'LAYERS': 'ch.bafu.hydroweb-warnkarte_national'},
serverType: 'mapserver', serverType: 'mapserver',
url: 'https://wms.geo.admin.ch/', url: 'https://wms.geo.admin.ch/',
}), }),