kartena / Proj4Leaflet

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

L.Proj.TileLayer.TMS doesn't work if tms option is set to true #53

Closed perliedman closed 10 years ago

perliedman commented 10 years ago

If creating a TMS tile layer and setting the option tms to true, the layer will not work properly.

Settings the tms option will enable Leaflet's own TMS logic, which in versions prior to 0.7 was hardwired against spherical Mercator, defeating the purpose of using L.Proj.TileLayer.TMS.

This is extra unfortunate since it looks sensible to enable the TMS option when using TMS.