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

Vector Layer Styling #216

Open
justb4 opened this issue Nov 1, 2013 · 1 comment
Open

Vector Layer Styling #216

justb4 opened this issue Nov 1, 2013 · 1 comment

Comments

@justb4
Copy link
Contributor

justb4 commented Nov 1, 2013

In addition to the GeoServer-REST-based WMS SLD Styling several users of Heron have asked for Vector Layer Styling. A Vector Layer may be a WFS Layer or from local origin like from Drawing (via OLEditor) or upload (Heron upload Vector file). By allowing local Vector Layer Styling not only colors for lines and fills may be set but using the OL Style system, even thematic maps may be created using Filter dialogues/expressions. The entire map may then be printed using MapFish Print. At this point no storage of Styles is required. So this makes it a client-only facility.

For the implementation I am building on the GXP Styling classes, as they are the most advanced. I started a crude implementation by overriding the WMSStylesDIalog widget and plugging in a VectorStyleWriter for persistence into the local Vector OL Layer. The sources are for now maintained in my GXP fork: https://github.com/justb4/gxp/ This is not the most optimal design, as a lot of behaviour-cancellation is performed in WMSStylesDIalog-overriding. A common StylesDialog baseclass would be more appropriate. Also many of the dialogues, especially for Labeling are unused/have no effect. I have a running example at: http://lib.heron-mc.org/heron/latest/examples/vectorstyler. Activate Vector styler via right-mouse context menu on Vector Layers in any Layer treepanel. There's quite some issues/bugs still, for one thing I had trouble using the OL Style(2) system, Symbolizers etc, especially for mixed geometry Layers and with feature rendering (may have to use GeoExt Feature Renderer).

So I realize this is not yet fit for a PR and I am waiting for new budget from users to continue development. But maybe others are interested so we may work jointly.
Via this issue I am making this work public.

justb4 added a commit to justb4/gxp that referenced this issue Jan 21, 2014
@justb4
Copy link
Contributor Author

justb4 commented Jan 21, 2014

There is a Heron example for GXP Vector Layer Styling:
http://lib.heron-mc.org/heron/latest/examples/vectorstyler
using various Vector Layers: local files, like GPX or GeoJSON files, WFS Layers and Drawing Layer (click drawing icon first). Click Help button for help. Always invoke Vector Styling via context menu of any Vector Layer.

justb4 added a commit to justb4/gxp that referenced this issue Jan 22, 2014
justb4 added a commit to justb4/gxp that referenced this issue Jan 23, 2014
justb4 added a commit to justb4/gxp that referenced this issue Jan 23, 2014
justb4 added a commit to justb4/gxp that referenced this issue Jan 24, 2014
…s-browser, fixes IE-problem in ColorField
justb4 added a commit to justb4/gxp that referenced this issue Jan 30, 2014
justb4 added a commit to justb4/gxp that referenced this issue Feb 3, 2014
justb4 added a commit to justb4/gxp that referenced this issue Feb 4, 2014
justb4 added a commit to justb4/gxp that referenced this issue Jun 17, 2014
capooti added a commit to cga-harvard/gxp that referenced this issue Apr 10, 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

No branches or pull requests

1 participant