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

Adding route param invisiblelayers and visiblelayers #106

Merged
merged 3 commits into from
Dec 4, 2017
Merged

Adding route param invisiblelayers and visiblelayers #106

merged 3 commits into from
Dec 4, 2017

Conversation

pelord
Copy link
Member

@pelord pelord commented Nov 23, 2017

If a param named "id" is specified into the context.json user can refer to this value into the url to toggle visibility over pre-defined values into the context. If there is no id defined into the context.json, user can use a pre-generated key (Md5.hashStr(..)). User can refer to the layer's tooltip to grab the id's value. No "cut and paste" behavior at this time on the tool-tip.

Allowed values are

  • =* (star) for everything
  • comma-separated list : ex =id1,id2
    Note that * values are interpreted before named id controls.

ex:
http://url/igo2/?context=mtq&invisiblelayers=*&visiblelayers=id1,id2
http://url/igo2/?context=mtq&invisiblelayers=id1,id2&visiblelayers=*
http://url/igo2/?context=mtq&invisiblelayers=id1&visiblelayers=id2

@pelord pelord closed this Nov 23, 2017
@pelord
Copy link
Member Author

pelord commented Nov 23, 2017

One error remainning

@pelord pelord reopened this Nov 23, 2017
@pelord
Copy link
Member Author

pelord commented Nov 23, 2017

Ok. Correction is done.

@mbarbeau mbarbeau merged commit 2667ac3 into infra-geo-ouverte:master Dec 4, 2017
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.

2 participants