kartena / Proj4Leaflet

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

Documentation still mentions L.Proj.CRS.TMS, although no longer present in the code #154

Open bhaskarvk opened 6 years ago

bhaskarvk commented 6 years ago

I don't see it in the new release but the documentation still refers to L.Proj.CRS.TMS for using TMS. It seems that now all we need is L.Proj.CRS, but I was wondering about how then to specify projectedBounds which was supported by L.Proj.CRS.TMS.

Any clarification would be greatly appreciated.

perliedman commented 6 years ago

Hi, it seems to be an oversight that the documentation hasn't been updated with this change.

After Leaflet 1.0, you can use the bounds property to set the projected bounds of the projection. You can refer to the TMS example to see how it's done: https://github.com/kartena/Proj4Leaflet/blob/b5a4cc7f2f11eba10d0f4605594f11b76cd12afa/examples/tms-tiled/script.js

perliedman commented 6 years ago

@bhaskarvk I took the liberty to edit the issue title to reflect what has to be addressed to close this issue; I'm leaving it open until the docs have been fixed.