-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
projected bounds and nonexistent tiles #62
Comments
I would start with trying
(added Also worth noting, is that this is one of the use cases that have been greatly improved in the development version of Leaflet (master branch) - CRS, projection, bounds and wrap have all been greatly improved and should be clearer to use. |
Thanks for advice. Unfortunately, Problem is not that I was wondering, if there is a way to set When I use Leaflet version from master branch, I get |
Sorry, I meant Proj4Leaflet's bounds option, which is in projected coordinates. That will affect what |
I got the desired behavior with leaflet-master. Works even without
But I believe there is error in
so I changed this to
and everything worked. |
BTW leaflet-0.7.2 does not react to |
Created pull request: Leaflet/Leaflet#2474 |
Ok, I didn't know you mixed current Proj4Leaflet (written for Leaflet 0.7.2) and Leaflet master, which has a lot of changes regarding CRS and Projection. That will be a problem. My suggestion above relates to current Proj4Leaflet (master) and Leaflet 0.7.2. If you want to use Leaflet master, you should look at the Proj4Leaflet branch https://github.com/kartena/Proj4Leaflet/tree/leaflet-proj-refactor |
Thank you. Leaflet's master works with Proj4Leaflet's leaflet-proj-refactor branch smoothly. With Leaflet's master and Proj4Leaflet's master I get exception in getProjectedBounds. I could not make leaflet-0.7.2 react to |
Ok, thanks for the information. I'll try to find some time to look into why it doesn't work with 0.7.2. |
Any updates on this. With the current master of leaflet, I also need the refactor branch to get proj4leaflet working. (An fiddle here: http://jsfiddle.net/6x77qua0/4/ (this.projection.bounds also fails when not on the correct branch) |
Leaflet master (that will become 1.0) is quite heavily refactored regarding CRS/projection handling. An updated version of Proj4Leaflet that should work with Leaflet master/1.0 is in this branch: https://github.com/kartena/Proj4Leaflet/tree/leaflet-proj-refactor |
Hello.
I have problems with setting map bounds in projected coordinates.
My map is in oblique stereographic projection: '+proj=sterea +lat_0=50 +lon_0=100 +k_0=1.0 +x_0=0 +y_0=0'. Its extent is [minx, miny, maxx, maxy]: [-6e6, -4e6, 4e6, 6e6].
If I don't set any bounds, I get lots of requests to nonexistent tiles. See map_without_bounds.
Setting L.Proj.CRS constructor bounds option does not prevent requests. See map_with_crs_bounds.
To deal with it L.TileLayer constructor accepts bounds option, but in latlng coordinates. If I set bounds like that ...
Leaflet requests map tiles from nonrectangular area. See map_with_layer_latlng_bounds.
Is there a way to set layer bounds in projected coordinates.
The text was updated successfully, but these errors were encountered: