[OpenLayers-Dev] Layer Type (POINT, MULTIPOINT, ..., LINE, POLY)?

geojoe jwolter at wisc.edu
Wed Dec 16 15:03:17 EST 2009


I'm still at a loss.     thelayer = document.getElementById('idSelect').options[document.getElementById('idSelect').selectedIndex].value;     for (var lyr=0; lyr < map.layers.length; ++lyr){         var layer = map.layers[lyr];         if(layer.name==thelayer.toString()){             var feature = layer.features[0];  //<= This is the error line             alert("Sel Feature Geom: "+feature.geometry.CLASS_NAME);         }     } Error: layer.features is undefined Source File: http://biomap.wisc.edu/Biofuels_dev/js/startup.js Line: 352 

begin:vcard
n:WOLTER;JOSEPH
fn:JOSEPH W WOLTER
tel;work:608-265-9354
tel;home:703-474-1601
org:University of Wisconsin;Soil Science
adr:;;1525 Observatory Drive;Madison;WI;53706-1299;USA
email;internet:jwolter at wisc.edu
title:Software Development
version:2.1
end:vcard

-- 
View this message in context: http://n2.nabble.com/Layer-Type-POINT-MULTIPOINT-LINE-POLY-tp4176282p4177687.html
Sent from the OpenLayers Dev mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20091216/6598cfad/attachment.html


More information about the Dev mailing list