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

David Zwarg dzwarg+ol_dev at avencia.com
Wed Dec 16 13:30:26 EST 2009


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 <jwolter at 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 at openlayers.org
> http://openlayers.org/mailman/listinfo/dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20091216/57aad3dd/attachment.html


More information about the Dev mailing list