-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Cross-wired zoom and layer issues on inline maps #7397
Comments
The unearthing layer zooms well when I zoom on the map. However, I had issues with zooming the map. It is because two baselayers are loaded on the tile pane causing conflict.
And one from within LEL which defaults to using a default baselayer if one is not passed in. plots2/app/assets/javascripts/leaflet_helper.js Lines 105 to 107 in 3bffa3b
We could remove line 98 from the leaflet_helper.js file and let LEL default to the baselayer within it. But there is an issue with relying on the default baselayer when using multiple maps in a page in the version of LEL used here. The next version has the fix. The other fix is passing in the baselayers as done here: plots2/app/views/map/map.html.erb Lines 92 to 104 in 3bffa3b
P.S: The lines are commented out because the correct variable name for the baselayer was not passed in causing a reference error. |
This is a gif of the issue on localhost which is what I encountered when I checked out the inline map in https://publiclab.org/wiki/onecranston#location. This is the same as issue#376. Depending on how we decide to proceed with this we could use this fix below until we bump LEL. Here's the gif after the fix: Changing the lines:
to
plots2/app/assets/javascripts/leaflet_helper.js Lines 105 to 107 in 505e13f
to
plots2/app/assets/javascripts/leaflet_helper.js Lines 132 to 134 in 505e13f
to
plots2/app/assets/javascripts/leaflet_helper.js Lines 141 to 143 in 505e13f
to
@nstjean, was looking over the baselayer issue and has confirmed that her changes work with the new LEL version. publiclab/leaflet-environmental-layers#376 (comment) |
Yes, we will be removing those baselayers in plots2 as soon as the newest LEL version is in plots2! |
Hi all, what do you think our schedule is for a new LEL? We could push one through by mid-day today? cc @emilyashley on this fix, just so you see the full lifecycle of a bug => fix => publication, which should be pretty fast! Thanks, all! |
Great, is this closed now? |
Should be fixed with the new LEL, not sure if you want to close it now or wait! |
This is all fixed with LEL updated! |
Hi, sorry, i'm just noticing some oddness with the unearthing layer here:
https://publiclab.org/wiki/onecranston#location
It seems that the zooming and layer loading are a little cross-wired. Like, i zoom but the unearthing layer doesn't. Could this have something to do with this PR, or something else we recently changed? cc @crisner as well -- thank you!
Originally posted by @jywarren in #7371 (comment)
The text was updated successfully, but these errors were encountered: