Commit graph

73 commits

Author SHA1 Message Date
Tom Hughes
f4fa8ed40e Fix setPosition(). 2008-04-16 17:59:05 +00:00
Tom Hughes
b8c500cdbc Get rid of our reprojection code and use OpenLayers reprojection instead. 2008-04-16 17:18:45 +00:00
Tom Hughes
a03c584a98 Resize the map div when the page load is complete (via onload) in case the
page layout has changed since the initial sizing by the deferred script.
2008-03-07 00:26:57 +00:00
Tom Hughes
a473b4ebd9 Use defer="defer" rather than onload to try and speed up page loading. 2008-03-04 18:18:59 +00:00
Tom Hughes
a31e61169c Back out attempt to commit partial support for POIs as this is not at
all ready for prime time yet.
2008-01-08 18:23:56 +00:00
Nick Whitelegg
1c7998009f began callback code for feature lookup 2008-01-07 20:44:16 +00:00
Nick Whitelegg
2e03861300 Began code for feature lookup: implemented code to respond to mouse click and latlon to non spherical Mercator (for the postgis database) 2008-01-07 20:25:12 +00:00
Tom Hughes
7fc2dbecd5 Migrate web site to use rails 2.0.1. 2008-01-06 12:17:58 +00:00
Tom Hughes
26f28764dc Update the links when the active layers change.
Closes #622.
2008-01-02 09:54:19 +00:00
Tom Hughes
15c492ebfe Try and make asset tagging actually work. 2007-12-06 18:42:45 +00:00
Tom Hughes
f5c9a41e87 Use the new OSM OpenLayers stuff. 2007-11-28 19:24:58 +00:00
Tom Hughes
7de4cb19b8 Wrap evaluation of default values for parameters inside the HTML escaping
as that causes nil to become "" hence defeating the conditional default.
2007-11-24 14:13:21 +00:00
Tom Hughes
2cbcabb3f6 HTML escape substituted parameter values to avoid injection attacks. 2007-11-23 00:49:55 +00:00
Tom Hughes
0c90905495 Add a stylesheet targeted at print media to get nice printouts. 2007-11-07 22:26:10 +00:00
Tom Hughes
877724813c Fix tab breakage and make key update as zoom level changes. 2007-10-28 16:46:10 +00:00
Tom Hughes
f2be4b9449 Patch from crschmidt to add an obvious permalink to the bottom right
corner of the slippy map. Tested on FF2, IE7, Opera and Safari.

Closes #566.
2007-10-23 08:45:23 +00:00
Tom Hughes
516aef5d07 Split out sidebar code from the search code so it can be reused for the
map key more cleanly.
2007-10-08 23:32:58 +00:00
Richard Fairhurst
822e48850d experimental pop-out map key 2007-10-08 22:10:26 +00:00
Tom Hughes
50ba644602 Setup the layers before adding any marker so that the marker layer
will get turned on if it was off in the layers string.
2007-08-30 10:42:32 +00:00
Tom Hughes
3db77411b8 Don't break when the user isn't logged in... 2007-08-24 19:06:25 +00:00
Tom Hughes
d2bd78627e More search improvements - a "Where am I?" link that does a reverse
search, and various cleanups to the previous changes.
2007-08-24 18:53:30 +00:00
Tom Hughes
215958fa0f Only include the home link if the user is logged in. 2007-08-24 17:47:57 +00:00
Tom Hughes
6cd8db7bff Only put the 'home' link in the top left on the map and edit pages, and
make it update position in place rather than reloading the page.
2007-08-24 17:43:15 +00:00
Tom Hughes
96eea9da7f Put the link to the map key back. 2007-08-08 23:08:28 +00:00
Tom Hughes
5ffb6950cc Use David Earl's arrow icon to show the position of a search result. 2007-08-08 16:57:09 +00:00
Tom Hughes
6706ca3c50 Use IP GeoLocation to choose a default view for the slippy map if
we don't have any better ideas.
2007-08-08 12:37:16 +00:00
Tom Hughes
2408dd333f Add a marker to the map when clicking on a search result. 2007-08-07 23:17:13 +00:00
Tom Hughes
6c02cd4b5f Commit SteveC's removal of the mappam ads. 2007-08-07 17:12:29 +00:00
Tom Hughes
397db07d65 New improved geocoder with extra added AJAX and OSM Namefinder support. 2007-08-07 17:09:37 +00:00
Tom Hughes
1ff72de318 Bloomin Americans that can't spell... 2007-07-29 16:26:57 +00:00
Tom Hughes
7e6a315104 Fix typo. 2007-07-29 16:25:13 +00:00
Tom Hughes
cbb7d97405 Add support for displaying a map covering a specified bounding box. 2007-07-29 14:26:42 +00:00
Tom Hughes
9634ab8fc1 Remember which layers are active in the cookie and URLs. 2007-07-29 14:06:04 +00:00
Tom Hughes
10e13b8fea Use a cookie to remember the last location viewed on the slippy map. 2007-07-28 00:07:31 +00:00
Tom Hughes
985047f18d User null to indicate the the user's home location is not set. 2007-07-27 17:46:01 +00:00
Steve Coast
48a3ee4d24 move zoom in one level by default 2007-07-25 08:34:37 +00:00
Tom Hughes
8afc6abb7e Allow the map centre and marker position to be set independently. 2007-07-16 09:42:17 +00:00
Tom Hughes
37e74fc5cb Make the slippy map work properly on IE7 at last! 2007-06-30 15:47:35 +00:00
Tom Hughes
b92e1b0584 Fix some HTML validation issue. 2007-06-30 12:09:28 +00:00
Tom Hughes
4358a6adcb Only do mappam for www.openstreetmap.org and openstreetmap.org to stop
the annoying "wrong API key" errors popping up all the time on my test
environment.
2007-06-29 14:54:55 +00:00
Steve Coast
5a66dbf907 add mappam... also stuff in user controller that must have been done by TomH? 2007-06-29 10:18:08 +00:00
Tom Hughes
5fcedc1bf4 Unconfuse OpenLayer's base location detection. 2007-06-23 18:35:04 +00:00
Tom Hughes
9619dfdb4b Factor out javascript code to support OpenLayers maps into a common file
that is shared by both the (current) pages that display maps.
2007-06-23 18:29:01 +00:00
Tom Hughes
8b79f7ff0f Set the map units to something OpenLayers actually understands... 2007-06-21 08:16:50 +00:00
Tom Hughes
b609606740 Adding missing parentheses. 2007-06-20 00:08:29 +00:00
Tom Hughes
e9d3d4d19b Add missing CSS and image resources from OpenLayers 2.4 release and
reorganise things to keep OpenLayers stuff together.
2007-06-20 00:06:02 +00:00
Tom Hughes
cbf2dea611 Allow access to all zoom levels again. 2007-06-15 13:47:08 +00:00
Tom Hughes
af5fa9e0ca Upgrade OpenLayers to the 2.4 release. 2007-06-15 13:11:05 +00:00
Tom Hughes
f7f2b7482d Add the search boxes to the edit page. 2007-06-12 16:51:12 +00:00
Tom Hughes
945e4ddcc8 Set the lat and long on the view and edit tabs when the map is loaded. 2007-06-12 10:13:15 +00:00