Skip to content

Commit c5dac4b

Browse files
Merge pull request #25 from geoadmin/fix-PB-1798-fix-dead-links-to-iframe
PB-1798 Update links to renamed page #patch
2 parents 5a311b6 + 65fa5d8 commit c5dac4b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/url-parameters.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ The map viewer comes in two flavors:
2828
<iframe src="https://map.geo.admin.ch/#/map?lang=en&center=2600992.01,1197480.32&z=6&topic=ech&layers=&bgLayer=ch.swisstopo.pixelkarte-farbe" style="border: 0;width: 400px;height: 300px;max-width: 100%;max-height: 100%;" allow="geolocation"></iframe>
2929

3030
- `https://map.geo.admin.ch/#/embed`: A simplified version with less menus suitable for embedding the map viewer on your webpage.
31-
See [the tutorial about HTML iframes](/docs/iframe) for details.
31+
See [the tutorial about HTML iframes](/docs/embed-in-an-iframe) for details.
3232

3333
<iframe src="https://map.geo.admin.ch/#/embed?lang=en&center=2600992.01,1197480.32&z=6&topic=ech&layers=&bgLayer=ch.swisstopo.pixelkarte-farbe" style="border: 0;width: 400px;height: 300px;max-width: 100%;max-height: 100%;" allow="geolocation"></iframe>
3434
:::
@@ -47,7 +47,7 @@ A list of all URL parameters available at [map.geo.admin.ch](https://map.geo.adm
4747
| `layers` | The layers in use. Each layer can be configured, see [layer parameters](#layer-parameters) for details. | See [layer parameters](#layer-parameters) | https://map.geo.admin.ch/#/map?layers=WMS|http://wms.geo.admin.ch/?|ch.swisstopo.geologie-geophysik-geothermie;ch.ensi.zonenplan-notfallschutz-kernanlagen |
4848
| `timeSlider` | Sets the year of the time slider. Format: `YYYY`, e.g. `1981`. Can be used with all "timeEnabled" levels. Special case WMS: An empty value (``timeSlider=`) means that the data for all years is displayed. | 0000, 0001, ...., 9999 | https://map.geo.admin.ch/#/map?layers=ch.swisstopo.lubis-luftbilder_farbe&timeSlider=1981 |
4949
| `crosshair` | Describes the type, easting and northing of a crosshair that is drawn on the map. | • Type: cross, circle, bowl, point, marker<br>• Easting/northing: see `center` | (1) https://map.geo.admin.ch/#/map?center=2538700,1165890&z=6&crosshair=circle<br>(2) https://map.geo.admin.ch/#/map?crosshair=cross,2600981,1197448 |
50-
| `swisssearch` | A query sent to the service behind the search bar. The map viewer shows the search result as if you typed it into the search bar manually. <br>ℹ️ To center the map automatically on the first search result, use `&swisssearch_autoselect=true`, see also [the iframe documentation](/docs/iframe) | Any text | (1) https://map.geo.admin.ch/#/map?swisssearch=berges%2037%20payerne<br>(2) https://map.geo.admin.ch/#/map?swisssearch=7.04983,46.42928|
50+
| `swisssearch` | A query sent to the service behind the search bar. The map viewer shows the search result as if you typed it into the search bar manually. <br>ℹ️ To center the map automatically on the first search result, use `&swisssearch_autoselect=true`, see also [the iframe documentation](/docs/embed-in-an-iframe) | Any text | (1) https://map.geo.admin.ch/#/map?swisssearch=berges%2037%20payerne<br>(2) https://map.geo.admin.ch/#/map?swisssearch=7.04983,46.42928|
5151
| `compareRatio` | The relative position of the swipe elements when comparison mode is enabled | Floating point value between 0 and 1 | https://map.geo.admin.ch/#/map?compareRatio=0.5&bgLayer=ch.swisstopo.pixelkarte-farbe&layers=ch.swisstopo.geologie-generalkarte-ggk200 |
5252
| `featureInfo` | How to display the tooltip. More details in [the corresponding section](#tooltip). | default, bottomPanel, tooltip, none | https://map.geo.admin.ch/#/map?layers=ch.bav.haltestellen-oev@features=8500010&lang=fr&featureInfo=bottomPanel |
5353
| `geolocation` | Whether to enable geolocation. | true, false | https://map.geo.admin.ch/#/map?lang=fr&geolocation=true |

0 commit comments

Comments
 (0)