Skip to content

Conversation

malexeev
Copy link
Contributor

Note that (tilePoint.x + tilePoint.y) might be negative in some cases (custom CRS with tiled WMS).
I discovered that tilePoint.y is often negative when using custom CRS (epsg:2393), tiled WMS layer and proj4leaflet together.
This small fix prevents possible negative subdomain index generation.

Note that (tilePoint.x + tilePoint.y) might be negative in some cases (custom CRS with tiled WMS).
mourner added a commit that referenced this pull request Mar 18, 2013
Somewhat "safer" _getSubdomain method - now it works even when (tilePoint.x + tilePoint.y) is negative.
@mourner mourner merged commit b657f32 into Leaflet:master Mar 18, 2013
@mourner
Copy link
Member

mourner commented Mar 18, 2013

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants