[Users] syles and tree sub-layer node

ivan marchesini ivan.marchesini at gmail.com
Fri Feb 26 12:56:52 CET 2010


Dear GeoExt users/dev.

as suggested here

http://www.geoext.org/tutorials/layertree-tutorial.html#filtering

I have used the sub-layer approach to create nodes in my tree (here my
test):

http://alderaan.irpi.cnr.it/test_geoext_06/webgis.html

this is an example of the layers..
____________________
var suscept = new OpenLayers.Layer.WMS(
		"Suscettibilita a frana",
        	"http://geoserver.irpi.cnr.it/geoserver/wms", {
                 layers: [
                     "Landslide_susceptibility",
                     "Landslide_susceptibility_fatalities"
                 ],
                 transparent: true,
                 format: "image/png"
        }, {
                 isBaseLayer: false,
                 displayInLayerSwitcher: true,
                 visibility: false
        },{
		projection: new OpenLayers.Projection("EPSG:900913")}
	)  	
_________________________


Using OpenLayers.Control.WMSGetFeatureInfo I'm able to get a popup wich
would have to contain attributes of clicked features.

The problem is that to obtain these attributes values I must define the
wms-style for each sub-layer ... 

How can I define a style parameter for each sub-layer????

many tanks..

Ivan



 


-- 
Ti prego di cercare di non inviarmi files .dwg, .doc, .xls, .ppt.
Preferisco formati liberi.
Please try to avoid to send me .dwg, .doc, .xls, .ppt files.
I prefer free formats.
http://it.wikipedia.org/wiki/Formato_aperto
http://en.wikipedia.org/wiki/Open_format

Ivan Marchesini
Perugia (Italy)
Socio fondatore GFOSS "Geospatial Free and Open Source Software" http://www.gfoss.it
e-mail: marchesini at unipg.it
        ivan.marchesini at gmail.com
fax (home): +39(0)5782830887
jabber: geoivan73 at jabber.org
skype: geoivan73
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Questa =?ISO-8859-1?Q?=E8?= una parte del messaggio
 firmata digitalmente
Url : http://www.geoext.org/pipermail/users/attachments/20100226/ef7b2f70/attachment.pgp 


More information about the Users mailing list