Skip to content

Commit

Permalink
Fix attributions links for WMS layers from swisstopo
Browse files Browse the repository at this point in the history
  • Loading branch information
fredj committed Dec 1, 2020
1 parent dcaa709 commit 6d04c36
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions examples/reprojection.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ layers['wms4326'] = new TileLayer({
layers['wms21781'] = new TileLayer({
source: new TileWMS({
attributions:
'© <a href="http://www.geo.admin.ch/internet/geoportal/' +
'en/home.html">Pixelmap 1:1000000 / geo.admin.ch</a>',
'© <a href="https://shop.swisstopo.admin.ch/en/products/maps/national/lk1000"' +
'target="_blank">Pixelmap 1:1000000 / geo.admin.ch</a>',
crossOrigin: 'anonymous',
params: {
'LAYERS': 'ch.swisstopo.pixelkarte-farbe-pk1000.noscale',
Expand Down
10 changes: 5 additions & 5 deletions examples/wms-custom-proj.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ const layers = [
url: 'https://wms.geo.admin.ch/',
crossOrigin: 'anonymous',
attributions:
'© <a href="http://www.geo.admin.ch/internet/geoportal/' +
'en/home.html">Pixelmap 1:1000000 / geo.admin.ch</a>',
'© <a href="https://shop.swisstopo.admin.ch/en/products/maps/national/lk1000"' +
'target="_blank">Pixelmap 1:1000000 / geo.admin.ch</a>',
params: {
'LAYERS': 'ch.swisstopo.pixelkarte-farbe-pk1000.noscale',
'FORMAT': 'image/jpeg',
Expand All @@ -68,9 +68,9 @@ const layers = [
url: 'https://wms.geo.admin.ch/',
crossOrigin: 'anonymous',
attributions:
'© <a href="http://www.geo.admin.ch/internet/geoportal/' +
'en/home.html">National parks / geo.admin.ch</a>',
params: {'LAYERS': 'ch.bafu.schutzgebiete-paerke_nationaler_bedeutung'},
'© <a href="https://www.hydrodaten.admin.ch/en/notes-on-the-flood-alert-maps.html"' +
'target="_blank">Flood Alert / geo.admin.ch</a>',
params: {'LAYERS': 'ch.bafu.hydroweb-warnkarte_national'},
serverType: 'mapserver',
}),
}),
Expand Down
10 changes: 5 additions & 5 deletions examples/wms-image-custom-proj.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ const layers = [
url: 'https://wms.geo.admin.ch/',
crossOrigin: 'anonymous',
attributions:
'© <a href="http://www.geo.admin.ch/internet/geoportal/' +
'en/home.html">Pixelmap 1:1000000 / geo.admin.ch</a>',
'© <a href="https://shop.swisstopo.admin.ch/en/products/maps/national/lk1000"' +
'target="_blank">Pixelmap 1:1000000 / geo.admin.ch</a>',
params: {
'LAYERS': 'ch.swisstopo.pixelkarte-farbe-pk1000.noscale',
'FORMAT': 'image/jpeg',
Expand All @@ -57,9 +57,9 @@ const layers = [
url: 'https://wms.geo.admin.ch/',
crossOrigin: 'anonymous',
attributions:
'© <a href="http://www.geo.admin.ch/internet/geoportal/' +
'en/home.html">National parks / geo.admin.ch</a>',
params: {'LAYERS': 'ch.bafu.schutzgebiete-paerke_nationaler_bedeutung'},
'© <a href="https://www.hydrodaten.admin.ch/en/notes-on-the-flood-alert-maps.html"' +
'target="_blank">Flood Alert / geo.admin.ch</a>',
params: {'LAYERS': 'ch.bafu.hydroweb-warnkarte_national'},
serverType: 'mapserver',
}),
}),
Expand Down
10 changes: 5 additions & 5 deletions examples/wms-no-proj.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ const layers = [
new TileLayer({
source: new TileWMS({
attributions:
'© <a href="http://www.geo.admin.ch/internet/geoportal/' +
'en/home.html">Pixelmap 1:1000000 / geo.admin.ch</a>',
'© <a href="https://shop.swisstopo.admin.ch/en/products/maps/national/lk1000"' +
'target="_blank">Pixelmap 1:1000000 / geo.admin.ch</a>',
crossOrigin: 'anonymous',
params: {
'LAYERS': 'ch.swisstopo.pixelkarte-farbe-pk1000.noscale',
Expand All @@ -22,10 +22,10 @@ const layers = [
new ImageLayer({
source: new ImageWMS({
attributions:
'© <a href="http://www.geo.admin.ch/internet/geoportal/' +
'en/home.html">National parks / geo.admin.ch</a>',
'© <a href="https://www.hydrodaten.admin.ch/en/notes-on-the-flood-alert-maps.html"' +
'target="_blank">Flood Alert / geo.admin.ch</a>',
crossOrigin: 'anonymous',
params: {'LAYERS': 'ch.bafu.schutzgebiete-paerke_nationaler_bedeutung'},
params: {'LAYERS': 'ch.bafu.hydroweb-warnkarte_national'},
serverType: 'mapserver',
url: 'https://wms.geo.admin.ch/',
}),
Expand Down

0 comments on commit 6d04c36

Please sign in to comment.