I have added the script but the calculations didn't change Sent from my iPad
On 18 Oct 2013, at 7:02 PM, Armin Burger <armin.bur...@gmail.com> wrote: > On 10/17/2013 10:41 PM, Solly Vuso wrote: >> Hi >> >> I have been using the Measure area in pmapper 5 and I have been >> strugling to change the size of and area from m ² to hectors (ha). >> >> any idea how should i change the calculation? >> >> Thank you > > > I do not know an easier solution than replacing the function to display the > results. Add the following lines to the custom.js file under your > config/?????/ directory > > > OpenLayers.Control.PMMeasureArea.prototype.showMeasureResults = function(evt) > { > var measureDecimals = 1; > > if (evt.units == "m") { > var measurement = evt.measure / 10000; > } else if (evt.units == "km") { > var measurement = evt.measure * 10; > } > > $('#pmMeasureTotal').val(measurement.roundTo(measureDecimals) + " > ha").css({width:'110px'}); > } > > ------------------------------------------------------------------------------ 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=60135031&iu=/4140/ostg.clktrk _______________________________________________ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users