AW: [OpenLayers-Users] Identifying geometry type

Arnd Wippermann arnd.wippermann at web.de
Wed Jul 6 16:43:32 EDT 2011


Hi,
 
that would be a possibility
yourSelectedLayer.features[0].geometry.CLASS_NAME
 
Arnd

  _____  

Von: openlayers-users-bounces at lists.osgeo.org
[mailto:openlayers-users-bounces at lists.osgeo.org] Im Auftrag von Coup Coup
Gesendet: Mittwoch, 6. Juli 2011 22:25
An: openlayers-users at lists.osgeo.org
Betreff: [OpenLayers-Users] Identifying geometry type


I have several layers on a map. In this case, I have a single geometry on
each layer. THe geometries are either Polygon, MultiPolygon or Points.

I need to be able to identify the geometry type so I can act accordingly
when the layer is selected.

Does anyone know how to identify the geometry type?
	
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20110706/e9244d62/attachment.html


More information about the Users mailing list