[OpenLayers-Users] Discovering the Polygon's Type
Luciano - Uol
l.s.borges at uol.com.br
Wed Oct 1 14:32:10 EDT 2008
Hi all,
How Can I find what kind of shape I had draw?
Example:
I created this control:
triangulo: new
OpenLayers.Control.DrawFeature(polygonLayer,
OpenLayers.Handler.RegularPolygon, {featureAdded: onFeatureAdded,
handlerOptions: {sides: 3}}),
I have this function:
function onFeatureAdded(feature){
idVetor = feature.id.split("_")[1];
alert(idVetor);
// HERE I'D LIKE TO KNOW HOW MANY SIDES THE FEATURE ADDED HAS
Someone can help me?
Sds, Luciano.
More information about the Users
mailing list