Skip to content
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 node with several layer names not correctly removed or added #1674

Merged
merged 1 commit into from
Aug 10, 2016

Conversation

pgiraud
Copy link
Contributor

@pgiraud pgiraud commented Aug 9, 2016

The purpose of this pull request is to fix an issue related to node corresponding to several LAYERS params (ie. several mapfile layers).

Currently in the "OSM Functions" group, there's a node called "two_layers" which actually displays "sustenance" and "entertainment" features on the map.

Steps to reproduce bug:

  • Clic on URL below
  • Expand the OSM Function group,
  • Deactivate the group -> the node "two_layers" is not deactivated.

Current:
https://camptocamp.github.io/ngeo/master/examples/contribs/gmf/apps/desktop_alt/?baselayer_ref=map&lang=en&map_x=601000&map_y=207500&map_zoom=4&rl_features&tree_groups=OSM%20functions&tree_group_layers_OSM%20functions=sustenance%2Centertainment%2Cosm_time%2Cosm_time2%2Cosm_scale%2Cosm_open%2Cbank%2Csustenance%2Centertainment%2Chalf_query%2Csrtm%2Caster
After fix:
https://pgiraud.github.io/ngeo/fix_two_layers/examples/contribs/gmf/apps/desktop_alt?baselayer_ref=map&lang=en&map_x=601000&map_y=207500&map_zoom=4&rl_features&tree_groups=OSM%20functions&tree_group_layers_OSM%20functions=sustenance%2Centertainment%2Cosm_time%2Cosm_time2%2Cosm_scale%2Cosm_open%2Cbank%2Csustenance%2Centertainment%2Chalf_query%2Csrtm%2Caster

The problem comes from the fact that we try to remove "foo,bar" from ["foo", "bar", "dude"] and eventually nothing is removed.

Please review.

@pgiraud pgiraud added this to the 2.1 milestone Aug 9, 2016
@fredj
Copy link
Member

fredj commented Aug 9, 2016

LGTM, thanks

@pgiraud pgiraud merged commit 4f68507 into camptocamp:master Aug 10, 2016
@pgiraud pgiraud deleted the fix_two_layers branch August 10, 2016 07:15
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.

None yet

2 participants