Make sure &#39;theLayer&#39; is an <a href="http://dev.openlayers.org/releases/OpenLayers-2.8/doc/apidocs/files/OpenLayers/Layer/Vector-js.html#OpenLayers.Layer.Vector">OpenLayers.Layer.Vector</a> object.<br><br><div class="gmail_quote">
On Wed, Dec 16, 2009 at 12:45 PM, geojoe <span dir="ltr">&lt;<a href="mailto:jwolter@wisc.edu">jwolter@wisc.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
I&#39;m fairly new to this stuff and I still don&#39;t know how to get the feature<br>
type given the layer.<br>
<br>
  theLayer.feature.geometry.CLASS_NAME<br>
     javascript ERROR feature is undefined<br>
<br>
  theLayer.features.geometry.CLASS_NAME<br>
    javascript ERROR features is undefined<br>
<br>
Thanks,<br>
Joe<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://n2.nabble.com/Layer-Type-POINT-MULTIPOINT-LINE-POLY-tp4176282p4176913.html" target="_blank">http://n2.nabble.com/Layer-Type-POINT-MULTIPOINT-LINE-POLY-tp4176282p4176913.html</a><br>

</font><div><div></div><div class="h5">Sent from the OpenLayers Dev mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Dev mailing list<br>
<a href="mailto:Dev@openlayers.org">Dev@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/dev" target="_blank">http://openlayers.org/mailman/listinfo/dev</a><br>
</div></div></blockquote></div><br>