You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When projecting/unprojecting center coords, invalid values are returned (EPSG2056 does not have negative coordinates, all of Switzerland's longitude coordinates are 6.0< lon <11.0):
console.log(this.map.unproject([2601108, 1200612])); // y,x
console.log(this.map.project(new L.LatLng(46.956589680879944, 7.453193664550781))); // lat, lon
Trying to display tile-layer with with EPSG2056 coords:
Initializing CRS
Resolutions from here: SwissTopo WMTS Documentation
Creating leaflet map and tile layer
No tiles are shown, wmt-service responds with 400 Bad Request, because negative value for {y} is requested:
https://wmts3.geo.admin.ch/1.0.0/ch.swisstopo.pixelkarte-farbe/default/current/2056/15/19/-10.png
project/unproject
When projecting/unprojecting center coords, invalid values are returned (EPSG2056 does not have negative coordinates, all of Switzerland's longitude coordinates are 6.0< lon <11.0):
yields:
After hours of fiddling, I can't seem to figure out proper way to use proj4leaflet in my angular project.
Any suggestions?
The text was updated successfully, but these errors were encountered: