[Users] Legend Panel Images
neomi mustain
neomim at gmail.com
Tue Mar 23 00:23:56 CET 2010
Hi,
Basic question here?!? I've added several layers to my map. And Ive
attempted to create a simple Legend Panel. The problem: If I load the map
with the layers visible, everything works fine. But If I load the map with
the layers turned off, when turning on a layer, the legend image does not
display. (The layer name appears, but no icon image). Any Hints?
Thank You!!
Neomi
Relevant parts of code:
// add overlay
var fixedLayer3 = new OpenLayers.Layer.WMS("Photos",
wmsurl, {
layers: "ex:photo",
transparent: true,
format: 'image/png'
}, {
//tileSize: new OpenLayers.Size(256,256),
singleTile: true, ratio: 1,
isBaseLayer: false,
displayInLayerSwitcher: true,
visibility: false
});
map.addLayer(fixedLayer3);
//add legend panel
var legendPanel = new GeoExt.LegendPanel({
title: 'Legend',
autoScroll: true,
bodyStyle: 'padding:5px',
width: 150,
region: 'west'
});
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20100322/92d8b1b5/attachment.htm
More information about the Users
mailing list