Opened 12 years ago

Closed 10 years ago

#1342 closed defect (wontfix)

SimpleMap.php - allow 'long'

Reported by: chriscf Owned by: Grant Slater
Priority: minor Milestone:
Component: website Version:
Keywords: wiki Cc:


For some unknown reason, SimpleMap?.php allows the use of "zoom" instead of "z", and passes "z=" to the map service, but errors out with the use of "long" instead of "lon". I find this bizarre since the link contains parameters "lat", "lon" and "zoom" while the map service URL contains "lat", "long" and "z" - the two accept different parameter names, but the script passes the right values to each.

Attached patch enables "long" with "lon" to go with "zoom" and "z", and removes the retarded error message.

Attachments (1)

allow-long.patch (1.1 KB) - added by chriscf 12 years ago.
DWIM patch for "long" parameter

Download all attachments as: .zip

Change History (3)

Changed 12 years ago by chriscf

Attachment: allow-long.patch added

DWIM patch for "long" parameter

comment:1 Changed 12 years ago by Grant Slater

Owner: changed from Tom Hughes to Grant Slater

comment:2 Changed 10 years ago by Grant Slater

Resolution: wontfix
Status: newclosed

'long' has been deprecated and is no longer supported.

Error message has been removed.

Note: See TracTickets for help on using tickets.