How to show Streetnames over Tiles with API

20 views
Skip to first unread message

marioka...@gmail.com

unread,
Jun 25, 2024, 5:12:12 PMJun 25
to GeoAdminCh API
Hi

We are currently integrating the aerial image of Switzerland into our website via the Swisstopo API. How can we implement the names of the streets as shown below in attachment?

Best wishes
Mario
-1875850430_1719348903564_501765.jpeg

Pascal Barth

unread,
Jun 26, 2024, 5:51:05 AMJun 26
to geoadm...@googlegroups.com
Hi Mario,

It will depend on what you mean by "integrating". If your goal is to have an iFrame with this data, here's a link that you can directly embed : https://map.geo.admin.ch/#/embed?bgLayer=ch.swisstopo.swissimage&layers=ch.swisstopo.amtliches-strassenverzeichnis (you might want to set the center and zoom to your wanted position)

If you are aiming at integrating that in your own OpenLayers/Leaflet/... stack, then I can provide you with a bit more information.
Swissimage is a WMTS layer, so it should be requested with a XYZ URL that looks like 
And street names is a WMS, so you should use a single image WMS approach for this one, the base URL is something like

It is assumed all layers here are requested in EPSG:2056 (aka LV95), if you want to request them in WebMercator (EPSG:3857 or EPSG:4326) you have to change the CRS/SR in all requests

Hope this can lead you to the right direction,

Cheers,
Pascal

--
You received this message because you are subscribed to the Google Groups "GeoAdminCh API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geoadmin-api...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geoadmin-api/d869583c-f6fa-4a17-ad64-e9c39c3abaa5n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages