Opened 12 years ago

Last modified 12 years ago

#472 new enhancement

widgets - measureTool - Units customisation

Reported by: cdeschenes Owned by: belug
Priority: minor Milestone:
Component: widgets Version: unspecified
Keywords: measure tool unit Cc:

Description

MeasureTool need parameters to define the units to show. Currently the widget isn't able to display other informations than the default measures units (like km / m and mi / ft) and a special parameter to add the hectometer format. The widget need improvement to be able to set all units that the user want and remove the units that he don't want.

There is also a bug with the unit of the perimeter when we use the area measureTool. (the perimeter unit change at the same moment than area unit and that could give bad information...)

Attachments (1)

patch-dynamic-units-measure-tool-fix-472-r1427-A0.diff (25.6 KB ) - added by cdeschenes 12 years ago.
This fix add the parameter units and calibrationValue to allow the user to select every units format that they want

Download all attachments as: .zip

Change History (3)

by cdeschenes, 12 years ago

This fix add the parameter units and calibrationValue to allow the user to select every units format that they want

comment:1 by cdeschenes, 12 years ago

my patch also repair the specified unit bug and I also commented a line that could cause some js error when the measureWindow disapear.

Please review

comment:2 by belug, 12 years ago

At the line 188 of org.GeoPrisma.MeasureTool.js you forgot to remove Hectometer from the defaults.

Why did you changed the map background from mapgears to open street map.

Note: See TracTickets for help on using tickets.