-
Notifications
You must be signed in to change notification settings - Fork 162
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
map SVG is broken after panning - panes are blank #429
Comments
I am not able to reproduce this issue. It appears this should have been closed by #587. |
|
@jameshadfield Yes, I am able to reproduce this. It appears there is an issue with the mapbox/leaflet-image library (See mapbox/leaflet-image#89 and mapbox/leaflet-image#117). When a map image is requested that spans the "anti meridian" (The line of 180 degree longitude) the result is incorrect. Areas of the map with a longitude less than -180 degrees are blank, while areas greater than +180 degrees seem to have a portion of the map incorrectly placed in the remaining area. |
@CameronDevine But Japan is about 138E longitude, and the line of cutoff in the example seems to go through Japan. Roughly the anti-meridian of Boston (funny coincidence, location of MIT). I had a similar problem with the anti-meridian of Ottawa, Canada in this leaflet map: https://leirtech.com/example/conn/ and solved it by making sure the longitudes values were within the range [Ottawa+180 .. Ottawa-180] with the 3 lines of code at or about |
I believe this issue should have been closed when #925 was merged in. However, I think the changes in that pull request, specifically the change to Note, this is only an issue when downloading an SVG of the data displayed. |
@CameronDevine thanks for that. You gave lots of info in just a few words. I think that you are saying that the SVG download used to work correctly? And it sounds as if several issues are interrelated. |
@rleir There are multiple interrelated issues here. Before #925 |
The map SVG comprises two parts - the saving of the background map panes as a base64 PNG inside the SVG, and the demes & transmissions (SVG paths etc). This works well for the default view, and zooming appears to be ok. Hovever, panning brakes both of these parts.
This issue:
Map panes which have been panned into view do not save and there are
404
s in the consoleUPDATE: I suggest any work towards this issue continues on top of PR #925
The text was updated successfully, but these errors were encountered: