kartena / Proj4Leaflet

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

allow array in bounds definition #162

Closed brentfraser closed 5 years ago

brentfraser commented 5 years ago

see #161

Allow bounds: [[0, 0], [4000, 5000]],

in the CRS definition, in addition to the traditional bounds: L.bounds([0, 0], [4000, 5000]),

brentfraser commented 5 years ago

I'm unclear about line 113: this.infinite = !L.bounds(this.options.bounds); so you may want to give this line extra scrutiny.

pthorin commented 5 years ago

Have run tests manually, they work as expected. Looks good, thank you!