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 object like geometry and you need to analyze the properties of this further on and use some Javascript methods to extract and display the coordinates and put this in this function. armin On 10/23/2013 01:23 PM, Juan Ramón Charco Toboso wrote: > 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.Control.PMToolMeasure.js > > Gracias de antemano, > Juan Ramón > > Translation by Google: > > Hello, > In pmapper5, there a way to modify the code of the tool 'Measure area' > for capture / display the coordinates of the vertices of the polygon drawn? > > The code of the tool 'Measure area' is located in the file > C: \ MS4W \ apps \ pmapper \ pmapper-5.0-beta2 \ js \ src \ > PM.Control.PMToolMeasure.js > > Thanks in advance. > Juan Ramón > > > ------------------------------------------------------------------------------ > October Webinars: Code for Performance > Free Intel webinars can help you accelerate application performance. > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from > the latest Intel processors and coprocessors. See abstracts and register > > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk > _______________________________________________ > pmapper-users mailing list > pmapper-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pmapper-users > ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk _______________________________________________ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users