Looking for a simple exemple

28 views
Skip to first unread message

thierr...@gmail.com

unread,
Jul 23, 2025, 2:44:53 AMJul 23
to GeoAdminCh API
Hi,

I was using the old version of the API and now I want to move to version 4.4.2.
or should I use even another version ? 

But I cannot find a working, simple example how to integrate  the map
ch.swisstopo.swisssurface3d-reliefschattierung_monodirektional and
ch.swisstopo.swisstlm3d-gewaessernetz

Can somebody help me ?

Thanks
Thierry

GeoAdminCh API

unread,
Jul 24, 2025, 3:07:23 AMJul 24
to GeoAdminCh API
Hello
Thanks for your request.
This codepen shows an example how to create a map with a specific layer and works with both of the mentioned layers: https://codepen.io/geoadmin/pen/qbeqPQ
Hope it helps.
Kind regards
Helpdesk Federal Geoportal geo.admin.ch

thierr...@gmail.com

unread,
Jul 24, 2025, 7:57:59 AMJul 24
to GeoAdminCh API
Thank you for this quick answer

Where can I found a description of the "ga" object ?  
I especially search a description of the layer.create method, what the possible options that we can provide 

Thank you
Thierry

Reply all
Reply to author
Forward
0 new messages