-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Fix WMS layer control #200
Conversation
I'll take a look later this week ag
|
Thanks for the ping @ocefpaf. Just getting back online after some travels. I remember asking about this during while I was building my first PR (#152 (comment)) but I think a review fell through the cracks and our tests didn't catch it. My apologizes for introducing a bug- but maybe it's just exposing something that needs to be fixed. Code Reference original code The original (and the code my refactored version mimicked) builds a string and uses this template to render it, which is simply You can see that the original code didn't actually use the rendered string and instead used the constructed string. I refactored the string construction for clarity (which I see you kept) and assumed that we needed to use the result from the template. IMO this is the key issue- do we need the template? Do some layers assume a rendering and some don't? It seems as though this could be changed to do all the string stuff in the template, instead of this two stage rendering. I will look more carefully at what the different layers expect - I probably am doing something non-standard in |
The only thing "more lacking" than our tests are our reviewer free time 😜 Do not worry! As you said we ended up exposing something that needs some re-thinking. The code that created the list of layers was hackish. We need to think how are we going to add this functionality for Right now this PR return the status quo of broken-but-working. |
Great I do not want this hack to leave |
What's the current status/who's assigned? are we waiting on #203 before On Thu, Aug 27, 2015 at 5:52 AM Filipe notifications@github.com wrote:
|
Sure thing
|
Commit #152 introduced a bug in the
add_layers_to_map
(The top control to select the layers).In this PR:
image_overlay
from theadded_layers
. I could not make it work due to a bug I was not able to find.add_layers_to_map
to its original code and things are working now.TODO: Re-add
image_overlay
to theadded_layers
without breakingadd_layers_to_map
for other layers.@andrewgiessel Let me know your thoughts on this since it was your original PR.
@BibMartin Can you review and merge? One it is done I will port it to master.