Hi,
I'm using the OpenLayers.Control.Measure control.
>From the many examples found, the handler declaration can either be :
1) function handleMeasr(geometry, length, area, units) {}
2) function handleMeasr(event) {}
Since I need the area & the perimeter, the first one should be the one to use.
BUT, it's not working : I get a "length is undefined" error when I try to
access the length value (or the area) with that definition.
On the other hand, if I use the second declaration, the
"event.measure.toFixed(3)" works fine but I can't get the area (there is no
event.area.xxx) ...
Anything special to do to make sure the first declaration gets called so I can
get the area ?
Thanks a lot.
________________________________________________________________________
James Léveillé
DMR, une division de Fujitsu Conseil (Canada) inc.
Bureau : 418.653.6882 #6911
Cellulaire : 418.265.5005
[email protected] <mailto:[email protected]>
Ce courriel et ses pièces jointes peuvent contenir des renseignements
confidentiels ouprivilégiés à l'intention du destinataire seulement. Toute
revue, utilisation, distribution ou divulgation de ces renseignements par
d'autres personnes est strictement interdite. Si vous n'êtes pas le
destinataire de ce courriel, ou si vous n'êtes pas autorisé à recevoir ce
courriel en son nom, vous n'avez pas le droit de l'examiner, de le copier ou de
le distribuer. Veuillez communiquer avec l'expéditeur en lui répondant et
supprimez toutes les copies de son message.
P Devez-vous vraiment imprimer ce courriel ? Pensons à l'environnement !
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users