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

Layer Style switcher #1194

Closed
Gnafu opened this issue Oct 24, 2016 · 1 comment
Closed

Layer Style switcher #1194

Gnafu opened this issue Oct 24, 2016 · 1 comment
Assignees
Milestone

Comments

@Gnafu
Copy link
Contributor

Gnafu commented Oct 24, 2016

Enable the "style" tab in the layers properties window

@offtherailz
Copy link
Member

In order to avoid the getCapabilities when possible I suggest a procedure to retrieve the list of the styles.

If the layer is from a WMS, we already have these information. We will save the list in the layer's info inside the map.

If the layer is from a CSW, we don't have the styles list. In some application we provide the Capabilities URL in the CSWRecord, and if possible (from GeoServer's CSW) that is the layer's specific capabilities, so the lightest version possible.

So the user will see this:
image

The user can type the style name inside the textbox to search in the list (if present) or to insert the style name.
If he clicks on the refresh button the list of the available styles will be refreshed using the capabilities url retrieved from the CSW (if present) or trying to generate it from the WMS URL.
In case of error (via timeout or other) the user will be notified but he is allowed anyway to insert the style manually.

As a plus, If legend URL is available, also the legend should be visible in this window, when a style is selected.

offtherailz added a commit to offtherailz/MapStore2 that referenced this issue Nov 3, 2016
@mbarto mbarto closed this as completed in 311d212 Nov 4, 2016
@ghost ghost assigned mbarto Nov 4, 2016
@ghost ghost removed the pending review label Nov 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants