WMS Legend

620
1
07-22-2013 07:34 AM
KennethLyons
New Contributor
I'm attempting to incorporate services from http://nowcoast.noaa.gov.  I've been able to work through my issues getting them to display.  My question now is that I am able to view the graphics/polygons with no issue, but there's really no explanation as to what each means without having to do some research.  is there a way to incorporate a legend that populates on the screen when the layers are activated?  I've seen a few previous posts referencing use of the STATIC IMAGE widget, but in my experience, that image is always on the screen and not capable of being deactivaed.

Does anyone have any possible solutions for this?  This seems like it should be relatively simple to fix, but I cannot find a solution.


Thanks
Tags (2)
0 Kudos
1 Reply
BjornSvensson
Esri Regular Contributor
http://nowcoast.noaa.gov ...is there a way to incorporate a legend that populates on the screen when the layers are activated?  I've seen a few previous posts referencing use of the STATIC IMAGE widget, but in my experience, that image is always on the screen and not capable of being deactivaed. ... This seems like it should be relatively simple to fix, but I cannot find a solution.

It would be simple if the NOAA WMS services supported legend URLs using the WMS specification, in which case it would just work (with version 3.4 or later of the viewer).
Option 1: You could use StaticImage widget (and always display the legends - http://nowcoast.noaa.gov/help/layerinfo.shtml?name=layerinfo).
Option 2: Or have a help link at top left that goes to a URL with more info.
Option 3: If you are working with the source code of the flex viewer, you could make a custom version of the StaticImage that updated as the layers updated. 
Option 4: Or maybe extend the WMSLayer to grab the legends using the NOAA specific syntax.
0 Kudos