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

Ability to create permalink #1264

Merged

Conversation

mricca
Copy link
Contributor

@mricca mricca commented Nov 11, 2016

No description provided.

@simboss simboss added the ready label Nov 11, 2016
},
setPermalinkLayersVisibility: function(originalLayers, newLayers) {
return originalLayers.map((originalLayer) => {
return assign({}, originalLayer, newLayers.find((layer) => originalLayer.id === layer ? originalLayer.visibility = true : originalLayer.visibility = false));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No side effects please:
return assign(
{},
originalLayer,
{
visibility: newLayers.filter((layer) => originalLayer.id === layer).length > 0 ? true : false
}
);

Remove side effect from setPermalinkLayersVisibility function
@mbarto mbarto merged commit 17d0644 into geosolutions-it:webmapper_halliburton Nov 11, 2016
@mbarto mbarto removed the ready label Nov 11, 2016
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.

3 participants