Make sure 'theLayer' is an OpenLayers.Layer.Vector<http://dev.openlayers.org/releases/OpenLayers-2.8/doc/apidocs/files/OpenLayers/Layer/Vector-js.html#OpenLayers.Layer.Vector>object.
On Wed, Dec 16, 2009 at 12:45 PM, geojoe <jwol...@wisc.edu> wrote: > > I'm fairly new to this stuff and I still don't know how to get the feature > type given the layer. > > theLayer.feature.geometry.CLASS_NAME > javascript ERROR feature is undefined > > theLayer.features.geometry.CLASS_NAME > javascript ERROR features is undefined > > Thanks, > Joe > > -- > View this message in context: > http://n2.nabble.com/Layer-Type-POINT-MULTIPOINT-LINE-POLY-tp4176282p4176913.html > Sent from the OpenLayers Dev mailing list archive at Nabble.com. > _______________________________________________ > Dev mailing list > Dev@openlayers.org > http://openlayers.org/mailman/listinfo/dev >
_______________________________________________ Dev mailing list Dev@openlayers.org http://openlayers.org/mailman/listinfo/dev