ch.swisstopo.pixelkarte-farbe map tiles into a Leaflet map

256 views
Skip to first unread message

Andy Hoe

unread,
Jul 3, 2017, 9:22:53 AM7/3/17
to GeoAdmin API
Hi,

I'm not sure if the ch.swisstopo.pixelkarte-farbe tiles need a web access account , anyway I personally don't have an account, my collegue have it.

We need to get ch.swisstopo.pixelkarte-farbe tiles into our Leaflet map but i'm not sure if even an access token and ID are needed to be passed as other provider do.


var mymap = L.map("map" , {
crs: L.CRS.EPSG3857,
                        
                        continuousWorld: true,
                        
                         worldCopyJump: false,
                        layers : [mappaOrografica,mappaSatellitare],
                         "zoomControl": false
 
}).setView([46.194603, 9.024825], 14);


ok I don't understand how that tiles can be used... ok our account is active but to have access We must fill the form another time here? https://www.geo.admin.ch/de/geo-services/geo-services/portrayal-services-web-mapping/programming-interface-api/order_form.html

I don't know Deutch lang, only Italian and English.

THanks.
AZ

Marc Monnerat

unread,
Jul 3, 2017, 10:17:27 AM7/3/17
to geoadmin-api
Hello Andy,

Granting access is based on Referer, there is not token or key.

If you want to use the Web Mercator projection, look at:
look this pages:

and

If you want to use the swiss native grid (LV03 at this time), look at these two examples:

or

All these examples are quite outdated. Problably, Leaflet also supports now client reprojection, as OpenLayers 4 does. 

Maybe, if you provide the referer you did register, we may also check if it is active or not.

Regards,

Marc

--
You received this message because you are subscribed to the Google Groups "GeoAdmin API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geoadmin-api+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
-- ἡ φύσις οὐδὲν ποιεῖ ἅλματα.
Reply all
Reply to author
Forward
0 new messages