<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19088"></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=296544220-06072011>Hi,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=296544220-06072011></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=296544220-06072011>that would be a possibility</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 
face=Arial>yourSelectedLayer.features[0].geometry.CLASS_NAME</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><SPAN class=296544220-06072011></SPAN><FONT face=Arial><FONT 
color=#0000ff><FONT size=2>A<SPAN 
class=296544220-06072011>rnd</SPAN></FONT></FONT></FONT><BR></DIV>
<DIV dir=ltr lang=de class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>Von:</B> openlayers-users-bounces@lists.osgeo.org 
[mailto:openlayers-users-bounces@lists.osgeo.org] <B>Im Auftrag von </B>Coup 
Coup<BR><B>Gesendet:</B> Mittwoch, 6. Juli 2011 22:25<BR><B>An:</B> 
openlayers-users@lists.osgeo.org<BR><B>Betreff:</B> [OpenLayers-Users] 
Identifying geometry type<BR></FONT><BR></DIV>
<DIV></DIV>
<TABLE border=0 cellSpacing=0 cellPadding=0>
  <TBODY>
  <TR>
    <TD vAlign=top>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.<BR><BR>I need to be able to identify the geometry 
      type so I can act accordingly when the layer is selected.<BR><BR>Does 
      anyone know how to identify the geometry 
type?<BR></TD></TR></TBODY></TABLE></BODY></HTML>