[Users] problem using 'legendURL'
geographika
geographika at gmail.com
Thu Nov 25 09:35:34 CET 2010
Does a commit on the record update the store?
var watershedsrec = legendLayerStore.getByLayer(watersheds);
watershedsrec.set("legendURL","http://myurl/legend/watersheds_legend.png");
watershedsrec.commit();
On 24/11/2010 19:17, karsten vennemann wrote:
> Ok changed but I still get a call to the wms layer for the legend instead of
> the URL I provide see below. No errors otherwise...
> I have no idea what’s going on
>
> I have this now
> var legendLayerStore = mapPanel.layers;
>
> // set legendurls
> var watershedsrec = legendLayerStore.getByLayer(watersheds);
> watershedsrec.set("legendURL",
> "http://myurl/legend/watersheds_legend.png");
>
> legendPanel = new GeoExt.LegendPanel({
> title: 'legend',
> collapsed : false,
> collapsible : true,
> defaults: {
> labelCls: 'mylabel',
> style: 'padding:5px'
> },
> bodyStyle: 'padding:5px',
> autoScroll: true,
> layerStore: legendLayerStore
> })
>
> Karsten
More information about the Users
mailing list