<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content=text/html;charset=iso-8859-1>
<STYLE type=text/css><!-- DIV {margin:0px;} --></STYLE>
<META content="MSHTML 6.00.6002.18309" name=GENERATOR></HEAD>
<BODY id=MailContainerBody
style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-TOP: 15px" leftMargin=0
topMargin=0 CanvasTabStop="true" name="Compose message area">
<DIV><FONT face=Arial size=2>OpenLayers.Map.addLayer(new
OpenLayers.Layer.WMS('layername',<your wms server url>,{layers:<your
layer name( s ) associated with the
feature>},{isBaseLayer:false})</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>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</FONT></DIV>
<DIV><FONT face=Arial size=2>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)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Hope that points you in the right
direction</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Matt Priour<BR>Kestrel Computer
Consulting</FONT><BR></DIV>
<DIV style="FONT: 10pt Tahoma">
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=robertdbuckley@yahoo.com
href="mailto:robertdbuckley@yahoo.com">Robert Buckley</A> </DIV>
<DIV><B>Sent:</B> Thursday, November 04, 2010 8:15 AM</DIV>
<DIV><B>To:</B> <A title=users@geoext.org
href="mailto:users@geoext.org">users@geoext.org</A> </DIV>
<DIV><B>Subject:</B> [Users] How to load a wms layer via link in attribute
table?</DIV></DIV></DIV>
<DIV><BR></DIV>
<DIV
style="FONT-SIZE: 8pt; FONT-FAMILY: arial,helvetica,sans-serif">Hi,<BR><BR>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.<BR><BR>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. <BR><BR>Any help would be
gratefully accepted.<BR><BR>Yours,<BR><BR>Robert Buckley<BR>
<DIV><BR></DIV></DIV><BR>
<P>
<HR>
<P></P>_______________________________________________<BR>Users mailing
list<BR>Users@geoext.org<BR>http://www.geoext.org/cgi-bin/mailman/listinfo/users<BR></BODY></HTML>