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

Legend configuration #103

Closed
GoogleCodeExporter opened this issue May 10, 2015 · 8 comments
Closed

Legend configuration #103

GoogleCodeExporter opened this issue May 10, 2015 · 8 comments

Comments

@GoogleCodeExporter
Copy link

Legend configuration. An option to place the legend for example under the name 
of a dataset.

Original issue reported on code.google.com by [email protected] on 27 Jun 2012 at 11:02

@GoogleCodeExporter
Copy link
Author

Owner=uitvoerder, in onderzoek.

Original comment by [email protected] on 10 Jul 2012 at 2:41

  • Added labels: Project-PrDrenthe
  • Removed labels: Project-None

@GoogleCodeExporter
Copy link
Author

Clarification needed "under the name of a dataset": my guess is that we can 
configure in Heron a legend URL with an OL Layer instance ?

e.g. 

      new OpenLayers.Layer.WMS("MyLayer",
            'http://mywms.com/wms',
    {layers: "mylayername", format: "image/png", transparent: true},
    {isBaseLayer: false, singleTile: true,  visibility: false, legendURL='http://mylegends.com/mylayer.gif'}
    )

Original comment by [email protected] on 12 Jul 2012 at 3:48

@GoogleCodeExporter
Copy link
Author

Options like this (see attachement)

Original comment by [email protected] on 13 Jul 2012 at 8:00

Attachments:

@GoogleCodeExporter
Copy link
Author

Ok. To make things clear and break up functionalities:

- allow for custom Legend URL (i.s.o. WMS GetLegend)
- Legend image within layer tree

Original comment by [email protected] on 16 Jul 2012 at 1:57

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

Maybe we could choose between gx_urllegend (TMS, XYZ, TileCache), gx_wmslegend 
(WMS) and gx_vectorlegend (vectors) dynamically in hr_layerlegendpanel?

Original comment by [email protected] on 15 Jul 2013 at 11:12

@GoogleCodeExporter
Copy link
Author

- allow for custom Legend URL (i.s.o. WMS GetLegend) is now (v0.74)  supported 
via Patch from Martin in issue 255.
works for all Layer types and even printing e.g. TMS by onfiguring legendURL 
custom Layer property.

Original comment by [email protected] on 16 Jul 2013 at 12:04

  • Changed state: Started

@GoogleCodeExporter
Copy link
Author

In the context of issue 331 quite some work has been done. See the examples:

http://lib.heron-mc.org/heron/latest/examples/sublayers and

http://lib.heron-mc.org/heron/latest/examples/layertree

It is now possible to configure legends in the LayerTree in two ways by 
configuring the 'nodeType: "gx_layer" entries:

- by explicitly setting the 'text' to with an HTML img with custom image or WMS 
GFI request

             {nodeType: "gx_layer", layer: "USA States (population < 2M)", text: Heron.options.legendImages.l_lt2M + "Population < 2M", legend: false },

- by setting the legend: true property: a GeoExt LayerLegend (WMS or Vector 
Legend Panel) is inserted:

        {nodeType: "gx_layer", layer: "USA States (All)", text: "USA States WMS (All)", legend: true},

See example attachment. I think this issue is fixed and can be closed...




Original comment by [email protected] on 10 Feb 2014 at 5:19

  • Changed state: Fixed

Attachments:

@GoogleCodeExporter
Copy link
Author

Original comment by [email protected] on 10 Feb 2014 at 5:20

  • Added labels: Milestone-Release1.0.1

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

1 participant