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.
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users