[pmapper-users] Capture coordinates of the polygon drawn with 'Measure area' in pmapper5

2013-10-25 Thread Juan Ramón Charco Toboso
Thank you very much Armin, that's just what I was looking for. The coordinates of each vertex of a polygon drawn with the tool 'Measure area' are on the array: evt.geometry.components [0]. components To show the coordinates of each polygon points(EPSG: 4326): var pto; var sizeArray = evt.geome

Re: [pmapper-users] Capture coordinates of the polygon drawn with 'Measure area' in pmapper5

2013-10-23 Thread Armin Burger
add an entry like the following to your custom.js file at the end: OpenLayers.Control.PMMeasureArea.prototype.showMeasureResults = function(evt) { console.log(evt); } Then use tools like Firebug to analyze the "evt" object that is logged there. inside this evt object you will find an obje

[pmapper-users] Capture coordinates of the polygon drawn with 'Measure area' in pmapper5

2013-10-23 Thread Juan Ramón Charco Toboso
Hola, En pmapper5, Existe alguna forma de modificar el código de la herramienta 'Measure area' para que capture/muestre las coordenadas de los vértices del polígono dibujado ? El código de la herramienta 'Measure area' se encuentra en el archivo C:\ms4w\apps\pmapper\pmapper-5.0-beta2\js\src\PM.C