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

Add "session-based styling" #2

Open
jeffersonheard opened this issue Aug 24, 2012 · 0 comments
Open

Add "session-based styling" #2

jeffersonheard opened this issue Aug 24, 2012 · 0 comments

Comments

@jeffersonheard
Copy link
Owner

I want to give a user the ability to load a number of stylesheets up once at the beginning of a session. So the client would post JSON or SLD XML as an Ajax request, and in this way the application can control the styling, rather than the rather clunky way that this is handled by products like GeoServer. So something like this:

var style = { ... };

// OR

var style = $("#sld")[0];

...

$.post('/wms/session_styles/', {
'name' : "name",
'stylesheet' : style,
});

and in oh, and openlayers, the WMS call is a GET with the styles: attribute set to the name that we used.

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

No branches or pull requests

1 participant