[Users] How to load a wms layer via link in attribute table?
Matt Priour
mpriour at kestrelcomputer.com
Thu Nov 4 14:56:26 CET 2010
OpenLayers.Map.addLayer(new OpenLayers.Layer.WMS('layername',<your wms server url>,{layers:<your layer name( s ) associated with the feature>},{isBaseLayer:false})
For your case, I would probably have a link in the popup which is actually linked to a javascript function, or a button (e.g., "View Analysis Layer( s )") which passes the relevant layernames to a javascript function
The function would add the layer to the map and could also add a layernode in the layer tree panel (or force a reload on a parent View Analysis node / tree loader)
Hope that points you in the right direction
Matt Priour
Kestrel Computer Consulting
From: Robert Buckley
Sent: Thursday, November 04, 2010 8:15 AM
To: users at geoext.org
Subject: [Users] How to load a wms layer via link in attribute table?
Hi,
I would like to somehow load a wls layer into a map via the popup window. Has anyone ever done this...I´m not too sure how to go about starting such a function.
The background is that I am creating a wind turbine point layer. For every point we have create a visibility analysis raster layer. Because there are over 900 rasters (3 zones for each turbine) files I cannot begin to think about loading them into the map at startup. I would therefore like to load them on request of the user either by adding the link into the popup, or maybe even through a separate window.
Any help would be gratefully accepted.
Yours,
Robert Buckley
--------------------------------------------------------------------------------
_______________________________________________
Users mailing list
Users at geoext.org
http://www.geoext.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20101104/b5ab986e/attachment.htm
More information about the Users
mailing list