[Users] legend for OpenLayers.Layer.Image

Charlton Galvarino charlton at 2creek.com
Fri Sep 17 20:18:35 CEST 2010


If I tacked on a legendURL attr to an OpenLayers.Layer.Image, what would it take to have that legend show up magically alongside WMS legends and vector legends inside a GeoExt.LegendPanel?

Would I need to follow WMSLegend.js's lead and do something like:

GeoExt.ImageLegend = Ext.extend(GeoExt.LayerLegend,{
...

Or is there a simple switch I could flick that would allow this to happen?  I'm having a tough time getting that extend to work.  If it's the right way to go, I'm looking for encouragement to soldier on.

UrlLegend.js looks really simple, and I'd love to somehow get that hooked to my little Image layer.

TIA.





Charlton Galvarino
1 (803) 233-6205 : voice
1 (803) 223-9579 :   fax
charlton at 2creek.com

P.O. Box 50960
Columbia, SC 29250



More information about the Users mailing list