Hello Alex,
So first of all I think you are probably aware of that, but in order to use this layer, you need to register here http://www.swisstopo.admin.ch/internet/swisstopo/en/home/products/services/web_services/webaccess.html .
I believe that you are trying to use a pure ol3 implentation using our WMTS service, otherwise you could cut right through complexity using our API. http://api3.geo.admin.ch/examples/geoadmin_mapoverlay.html
If your goal is to use only ol3, here is an external example and explanations, that will be soon part of our doc. (You need to define the tile grid and wmts source, and include the proj4js definition of 21781 epsg code.)
http://procrastinatio.org/2015/02/21/lv95-lv03-comparison/
Concerning your question regarding projections.
When creating our tiles the default proj is 2178 and we use the wmts addresses {1-4}.
All the other projections are using the wmts address {10}, because they are reprojected tiles on the fly.
So if you don't really care about ptojection in your app, you should use the default one.
I hope that this is helpful to you.
Good luck with all that!
Kind Regards,
Loïc Gasser
Swisstopo
--
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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "GeoAdmin API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/geoadmin-api/EVVK7qfOheU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to geoadmin-api...@googlegroups.com.
Yes, very helpful
I grabbed your handy wmtsSource-function (thanks Loic for the link) and copied the timestamp from the WMTS GetCapabilities document.
It works nicely now.
Thanks for your great help!
Alex