kartena / Proj4Leaflet

Smooth Proj4js integration with Leaflet.
http://kartena.github.io/Proj4Leaflet/
BSD 2-Clause "Simplified" License
587 stars 172 forks source link

25832 tileLayer displaying wrong y order on map #176

Closed TimMcCauley closed 4 years ago

TimMcCauley commented 4 years ago

Greetings everyone,

sorry for posting here but I have the feeling this could by very Proj4Leaflet specific, please feel free to close if you would rather I post on a different forum. I am wondering what I am doing wrong in this example: https://jsfiddle.net/m93quLn4/2/

The tileset I am trying to embed is in 25832 ( https://mapproxy.bba.atenekom.eu/tms/1.0.0/privat_alle_50_mbit/germany ) and the resolutions are copied directly from it. On zoom the tiles are loaded but placed on the map in the wrong order. Also the maps origin is correctly set (using <BoundingBox minx="273211.2532533697" miny="5200000.0" maxx="961083.6232988155" maxy="6111822.37943825"/> minx / maxy) in Leaflet but it is further south than expected.

What am I missing here? Thanks plenty -

TimMcCauley commented 4 years ago

@perliedman sorry for poking you directly but maybe you have a brilliant idea (as in the other issues..) how to solve this quest? Something is not entering my mind.. I can see a pattern but I just don't know how to tackle it. I added a background WMS in 25832 which may help... https://jsfiddle.net/6gcam7w5/7/ (this is where it seems to work with openlayers https://www.bmvi.de/DE/Themen/Digitales/Breitbandausbau/Breitbandatlas-Karte/start.html)

TimMcCauley commented 4 years ago

For those facing a similar problem - the answer can be found here https://stackoverflow.com/questions/62622737/vertical-alignment-of-tms-tiles-in-leaflet-using-epsg25832-projection .