Opened 14 years ago

Last modified 13 years ago

#1284 new enhancement

The choice of system of measurement should be read from configuration file

Reported by: gabrimonfa Owned by:
Priority: low Milestone:
Component: AJAX Viewer Version: 2.2.0
Severity: trivial Keywords:
Cc: External ID:

Description

As far as I know the choice between United States customary system (miles) and the metric system (meters) is now controlled by the variable "us" in ajaxmappane.templ at line 293.

The value true chooses United States customary system, the value false chooses the metric system.

I propose to read the value from a configuration parameter, maybe maintaining a true default value.

Change History (2)

comment:1 by tomfukushima, 14 years ago

I think that the proposed solution could solve part of the problem but this is really an end-user preference isn't it? For example, I as a Canadian would like to measure in metric, but an American viewing the same map would like to measure using imperial units.

Can we set the units based on the "regional settings" of the client machine? Also, if the end-user wants to override the default units, can we store that in a cookie---this has the limitation that it will only work on that one MG site?

comment:2 by gabrimonfa, 13 years ago

Version: 2.1.02.2.0
Note: See TracTickets for help on using tickets.