<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3603" name=GENERATOR>

<DIV dir=ltr align=left><SPAN class=844062415-09102009><FONT face=Arial color=#0000ff size=2>Hello Jian,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=844062415-09102009><FONT face=Arial color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=844062415-09102009><FONT face=Arial color=#0000ff size=2>I was able to finally get the application running.&nbsp; I 
ran across a posting that had the "featureNS" statement I've inserted 
below</FONT></SPAN><SPAN class=844062415-09102009><FONT face=Arial color=#0000ff size=2>:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=844062415-09102009><FONT face=Arial color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=844062415-09102009><FONT face=Arial color=#0000ff size=2>&nbsp;&nbsp;&nbsp;var polygonLayer = new 
OpenLayers.Layer.WFS( 
"HOMELOT",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
"<A href="http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apache/htdocs/homeinfo_wfs_attr.map" target="_top" rel="nofollow">http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apache/htdocs/homeinfo_wfs_attr.map</A>&amp;", 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;{typename: 
'taxlots',<BR>&nbsp;&nbsp;&nbsp;&nbsp;featureNS: "<A href="http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apache/htdocs/homeinfo_wfs_attr.map" target="_top" rel="nofollow">http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apache/htdocs/homeinfo_wfs_attr.map</A>",<BR>&nbsp;&nbsp;&nbsp;&nbsp;typename: 
'ms:taxlots'},<BR>&nbsp;&nbsp;&nbsp;&nbsp;{extractAttributes:true, visibility: 
false});&nbsp; //, style: 
OpenLayers.Util.extend({},OpenLayers.Feature.Vector.style['default'])});<BR>&nbsp;</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=844062415-09102009><FONT face=Arial color=#0000ff size=2>I think the trick was having the typename: 'ms:taxlots' 
parameter (taxlots is the name of my layer).</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=844062415-09102009><FONT face=Arial color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=844062415-09102009><FONT face=Arial color=#0000ff size=2>Once I did that I can see the WFS layer display, I can 
click on the tax lot polygon and the framedcloud popup does pop up and the 
attributes are displayed.&nbsp; And the tax lot polygon is highlighted.&nbsp; 
The next problem now is that the WFS layer displays REAL slow.&nbsp; Anything 
over 20 - 30 records takes too long.&nbsp; I've been doing more reading on that 
and I'm wondering if WFS is just that way.&nbsp; So in the meantime I've 
switched back to using a WMS layer and the getfeatureinfo method of displaying a 
popup.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=844062415-09102009><FONT face=Arial color=#0000ff size=2><BR>Cress</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Jian Zhou (via Nabble) 
[mailto:<a href="http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3795376&i=0" target="_top" rel="nofollow">[hidden email]</a>] <BR><B>Sent:</B> Friday, 
October 09, 2009 2:41 AM<BR><B>To:</B> BATES Cress A (Lane 
Cty)<BR><B>Subject:</B> Re: [OpenLayers-Users] WFS Popup Attributes 
undefined<BR></FONT><BR></DIV>
<DIV></DIV>I have the same questiong like you. So your OpenLayers application is 
running and all layers are displayed fine? <BR>What's the output after clicking 
on an object?Can you see the popup fine? <BR>Regards <BR>
<BLOCKQUOTE class="quote light-black dark-border-color">
  <DIV class="quote light-border-color">
  <DIV class=quote-author style="FONT-WEIGHT: bold">Cress B. wrote:</DIV>
  <DIV class="quote-message shrinkable-quote">I'm fairly new to OpenLayers and 
  have been trying to get the attributes from my WFS mapfile to display in a 
  popup window. &nbsp;I would like the user to be able to click on a polygon and 
  have the attributes display as a list in a popup. &nbsp; I've started with the 
  select-feature-openpoup.html example and have inserted by own WFS mapfile. 
  &nbsp;I can load my polygon shapefile as a WFS service and see them load as 
  orange polygons - although they load REAL slow. &nbsp;When I activate the 
  popup option and click on a polygon the popup window comes up and the polygon 
  is highlighted in blue. &nbsp;The popup is returning the area of the polygon 
  as part of the 'feature.geometry.getArea()' parameter; but the other 
  attributes in my shapefile are "undefined" in the popup. &nbsp;I've hacked 
  away for several days, reading almost all the posts dealing with popup, WFS, 
  attributes... and still can't figure out what I'm doing wrong. &nbsp;So I'm 
  not sure if my WFS mapfile is wonky or if my script in OpenLayers is missing 
  something. <BR><BR>Below is my Mapfile: <BR><BR><BR>MAP <BR>&nbsp; NAME &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; 'TAXLOT' <BR>&nbsp; STATUS &nbsp; &nbsp; &nbsp; 
  &nbsp; ON <BR>&nbsp; IMAGETYPE &nbsp; &nbsp; &nbsp;PNG24 <BR>&nbsp; 
  TRANSPARENT &nbsp; &nbsp;ON <BR>&nbsp; EXTENT &nbsp; &nbsp; &nbsp; &nbsp; 
  4239905 896089 4247235 902911 <BR>&nbsp; SIZE &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; 1000 800 <BR>&nbsp; IMAGECOLOR &nbsp; &nbsp; 152 252 210 <BR>&nbsp; 
  UNITS Feet <BR>&nbsp; SHAPEPATH &nbsp; &nbsp; &nbsp;"/ms4w/apps/tutorial/data" 
  <BR>&nbsp; FONTSET &nbsp; &nbsp; &nbsp; 
  &nbsp;"/ms4w/apps/tutorial/fonts/fonts.list" <BR>&nbsp; SYMBOLSET &nbsp; 
  &nbsp; &nbsp;"/ms4w/apps/tutorial/symbols/symbols35.sym" <BR>&nbsp; &nbsp;WEB 
  <BR>&nbsp; &nbsp; IMAGEPATH "/ms4w/tmp/ms_tmp/" <BR>&nbsp; &nbsp; IMAGEURL 
  &nbsp;"/ms_tmp/" <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;METADATA 
  <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"wfs_title" &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; "TAXLOT" <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp;"wfs_onlineresource" &nbsp;"<A href="http://localhost/cgi_bin/mapserv.exe?&amp;" target=_top rel="nofollow">http://localhost/cgi_bin/mapserv.exe?&amp;</A>" 
  &nbsp;#map=homeinfo_wfs.map&amp;" <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp;"wms_srs" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "EPSG:32127" 
  <BR>&nbsp; &nbsp; &nbsp; &nbsp;END #end metadata <BR>&nbsp; &nbsp; &nbsp; 
  &nbsp; END #end web <BR>&nbsp; &nbsp; PROJECTION <BR>&nbsp; &nbsp; 
  "init=epsg:32127" <BR>&nbsp; &nbsp; END #end projection <BR>&nbsp; &nbsp; 
  <BR>&nbsp; LAYER # Taxlots polygon layer begins here <BR>&nbsp; &nbsp; NAME 
  &nbsp; &nbsp; &nbsp; &nbsp; "taxlots" <BR>&nbsp; &nbsp; &nbsp; &nbsp; 
  CONNECTIONTYPE WFS <BR>&nbsp; &nbsp; &nbsp; &nbsp; METADATA <BR>&nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; "wfs_typename" &nbsp; &nbsp; &nbsp; "taxlots" <BR>&nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; "wfs_request_method" "GET" <BR>&nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; "gml_featureid" &nbsp; &nbsp; &nbsp;"FID" <BR>&nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; "gml_include_items" &nbsp;"all" <BR>&nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; "queryable" "true" <BR>&nbsp; &nbsp; END <BR>&nbsp; 
  &nbsp; DATA &nbsp; &nbsp; &nbsp; &nbsp; 'HomeTaxlots' <BR>&nbsp; &nbsp; TYPE 
  &nbsp; &nbsp; &nbsp; &nbsp; POLYGON <BR>&nbsp; &nbsp; STATUS &nbsp; &nbsp; 
  &nbsp; ON <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PROJECTION <BR>&nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp;"init=epsg:32127" <BR>&nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; END <BR>&nbsp; &nbsp; &nbsp; &nbsp; DUMP &nbsp; &nbsp; &nbsp; &nbsp; 
  TRUE <BR>&nbsp; &nbsp; &nbsp; &nbsp; TEMPLATE &nbsp; &nbsp; 
  /ms4w/apps/template/foo.html <BR>&nbsp; &nbsp; CLASS <BR>&nbsp; &nbsp; &nbsp; 
  NAME &nbsp; &nbsp; &nbsp; "lots" <BR>&nbsp; &nbsp; &nbsp; STYLE <BR>&nbsp; 
  &nbsp; &nbsp; &nbsp; COLOR &nbsp; &nbsp;155 155 255 <BR>&nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OUTLINECOLOR 0 15 27 <BR>&nbsp; &nbsp; 
  &nbsp; END <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TEMPLATE "ttt_query.html" 
  <BR>&nbsp; &nbsp; END <BR>&nbsp; END # Taxlots polygon layer ends here <BR>END 
  # All map files must come to an end just as all other things must come to... 
  <BR><BR>And this is the OpenLayers script piece for the popup: <BR><BR>&nbsp; 
  &nbsp; &lt;script type="text/javascript"&gt; <BR>&nbsp; &nbsp; &nbsp; &nbsp; 
  var map, drawControls, selectControl, selectedFeature; <BR>&nbsp; &nbsp; 
  &nbsp; &nbsp; var lon = 4243545; <BR>&nbsp; &nbsp; &nbsp; &nbsp; var lat = 
  900150; <BR>&nbsp; &nbsp; &nbsp; &nbsp; var zoom = 0; <BR>&nbsp; &nbsp; &nbsp; 
  &nbsp; var map, test_wfs, layer; <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  <BR>&nbsp; &nbsp; &nbsp; &nbsp; function onPopupClose(evt) { <BR>&nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; selectControl.unselect(selectedFeature); 
  <BR>&nbsp; &nbsp; &nbsp; &nbsp; } <BR>&nbsp; &nbsp; &nbsp; &nbsp; function 
  onFeatureSelect(feature) { <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  selectedFeature = feature; <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; var maplot = selectedFeature.attributes['MAPLOT']; 
  <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var lot 
  = selectedFeature.attributes['LOT']; <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; var acres = selectedFeature.attributes['ACRES']; 
  <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var 
  taxcode = selectedFeature.attributes['TAXCODE']; <BR>&nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; popup = new OpenLayers.Popup.FramedCloud("info", 
  <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp;feature.geometry.getBounds().getCenterLonLat(), <BR>&nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;null, <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp;"&lt;div style='font-size:.8em'&gt;TaxLot: " + maplot 
  +"&lt;br /&gt;Lot: " + lot+"&lt;br /&gt;Acres: " +acres +"&lt;br/&gt;Taxcode: 
  " +taxcode+"&lt;br/&gt;Area: " + feature.geometry.getArea()+"&lt;/div&gt;", 
  <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;null, 
  true,onPopupClose); <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  feature.popup = popup; <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  map.addPopup(popup); <BR>&nbsp; &nbsp; &nbsp; &nbsp; } <BR>&nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <BR>&nbsp; &nbsp; &nbsp; &nbsp; 
  function onFeatureUnselect(feature) { <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; map.removePopup(feature.popup); <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; feature.popup.destroy(); <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  feature.popup = null; <BR>&nbsp; &nbsp; &nbsp; &nbsp; } &nbsp; &nbsp; 
  <BR>&nbsp; &nbsp; &nbsp; &nbsp; function init(){ <BR>&nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; var options = { <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; projection: new OpenLayers.Projection("EPSG:32127"), 
  <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; displayProjection: 
  new OpenLayers.Projection("epsg:32127"), <BR>&nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; units: "feet", <BR>&nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; maxResolution: "auto", <BR>&nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; allOverlays: true, <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; maxExtent: new OpenLayers.Bounds(4239905, 895089, <BR>&nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp;4247235, 906500) <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }; 
  <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; map = new 
  OpenLayers.Map("map",options <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; ); <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var 
  polygonLayer = new OpenLayers.Layer.WFS( "TAXLOT", <BR>&nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "<A href="http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apache/htdocs/homeinfo_wfs_good.map&amp;" target=_top rel="nofollow">http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apache/htdocs/homeinfo_wfs_good.map&amp;</A>", 
  <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {typename: 'taxlots'}); 
  <BR><BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //var polygonLayer = new 
  OpenLayers.Layer.Vector("Polygon Layer"); <BR><BR>&nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; map.addLayers([polygonLayer]); <BR>&nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <BR>&nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; map.addControl(new 
  OpenLayers.Control.LayerSwitcher()); <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; map.addControl(new OpenLayers.Control.MousePosition()); <BR>&nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; selectControl = new OpenLayers.Control.SelectFeature(polygonLayer, 
  <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {onSelect: 
  onFeatureSelect, onUnselect: onFeatureUnselect}); <BR>&nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; drawControls = { <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; polygon: new OpenLayers.Control.DrawFeature(polygonLayer, 
  <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; OpenLayers.Handler.Polygon), <BR>&nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; select: selectControl <BR>&nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }; <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for(var key in 
  drawControls) { <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  map.addControl(drawControls[key]); <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; } <BR><BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <BR>&nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; map.setCenter(new OpenLayers.LonLat(0, 0), 3); 
  <BR><BR>&nbsp; &nbsp; &nbsp; &nbsp; } <BR><BR>&nbsp; &nbsp; &nbsp; &nbsp; 
  function toggleControl(element) { <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; for(key in drawControls) { <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; var control = drawControls[key]; <BR>&nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(element.value == key &amp;&amp; 
  element.checked) { <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; control.activate(); <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; } else { <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; control.deactivate(); <BR>&nbsp; &nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } <BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
  &nbsp; } <BR>&nbsp; &nbsp; &nbsp; &nbsp; } </DIV></DIV></BLOCKQUOTE><IMG class=smiley src="http://n2.nabble.com/images/smiley/anim_handshake.gif" NOSEND="1"><IMG class=smiley src="http://n2.nabble.com/images/smiley/anim_handshake.gif" NOSEND="1"><IMG class=smiley src="http://n2.nabble.com/images/smiley/anim_handshake.gif" NOSEND="1"> 

<br><hr align="left" width="300">
View this message in context: <a href="http://n2.nabble.com/WFS-Popup-Attributes-undefined-tp3778098p3795376.html">RE: [OpenLayers-Users] WFS Popup Attributes undefined</a><br>
Sent from the <a href="http://n2.nabble.com/OpenLayers-Users-f1822463.html">OpenLayers Users mailing list archive</a> at Nabble.com.<br>