Opened 15 years ago
Last modified 14 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.
Note:
See TracTickets
for help on using tickets.
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?