Tom Hughes
4cc400de43
Merged 7296:7388 from rails_port trunk.
2008-04-16 23:52:32 +00:00
Tom Hughes
599c48227a
Ajaxify the export tab.
2008-04-16 23:45:16 +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
25885677e2
Use OL 2.6 auto sizing for popups instead of doing it ourselves.
2008-04-16 08:49:55 +00:00
Tom Hughes
2b35dadd5f
Add a scale control to the map. Closes #51 .
2008-04-16 08:04:44 +00:00
Tom Hughes
7f34e5e8fc
Really remove it this time...
2008-04-11 19:56:56 +00:00
Tom Hughes
790c4c1937
Remove accidental commit of my local mapnik layer.
2008-04-11 19:56:29 +00:00
Tom Hughes
0d60c39721
Fix IE breakage.
2008-04-11 19:40:32 +00:00
Tom Hughes
93029ab7aa
Turn on wrapDateLine for all layers.
...
Also correct the declared projection for the markers layer.
2008-04-11 17:54:51 +00:00
Tom Hughes
1df50231fa
Commit initial work on export tab.
2008-04-07 23:23:15 +00:00
Tom Hughes
253c10393d
Use PanZoomBar instead of PanZoom.
2008-02-14 18:51:52 +00:00
Tom Hughes
fae8295ec2
Disable keyboard control of the map as it causes problems by catching
...
keypresses in other parts of the page. Closes #659 .
2008-02-03 23:57:37 +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
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
3cd04f7db4
Don't set the layers argument if the caller didn't specify it.
2007-12-31 10:13:36 +00:00
Tom Hughes
be26b89c3f
Add a maplint layer to the map. Note that the t@h server currently serves
...
solid grey tiles for tiles which are not in the database which limits the
utility of this.
Closes #484 .
2007-12-31 09:08:30 +00:00
Tom Hughes
880997c7da
Don't show the marker layer in the layer switcher.
2007-12-30 17:27:47 +00:00
Tom Hughes
1e9483fe72
Set extent information for the marker layer.
2007-12-07 00:15:21 +00:00
Tom Hughes
8b7d73ebb6
Make sure we load OpenLayers resources from the right place.
2007-12-06 18:59:36 +00:00
Tom Hughes
7ee377352e
Move scale/resolution configuration to the base layers so that
...
people dragging in our customer layers don't need to worry about
setting the magic numbers.
2007-12-06 14:18:30 +00:00
Tom Hughes
3ed64ceb54
Set the number of zoom levels for the marker layer based on the
...
maximum number of zoom levels of any of the base layers.
2007-12-06 13:46:56 +00:00
Tom Hughes
4c3b59fe25
Set number of zoom levels on a per layer basis. Closes #603 .
2007-12-04 00:42:08 +00:00
Tom Hughes
f5c9a41e87
Use the new OSM OpenLayers stuff.
2007-11-28 19:24:58 +00:00
Tom Hughes
39e77df344
Add keyboard shortcuts to the slippy map.
2007-11-21 09:51:55 +00:00
Tom Hughes
bcf2fe5129
Spread T@H over three host names.
2007-11-09 15:29:30 +00:00
Tom Hughes
5ac70d8946
Use the tah.opstreetmap.org domain name for the T@H layer.
2007-11-07 08:25:11 +00:00
Tom Hughes
e373c63837
Round latitude and longitude values in links to a sensible number of
...
decimal places for the zoom level whilst still preserving accuracy
sufficient to position the map within a few pixels.
The relationship between zoom level, decimal places, and the accuracy
with which the map can then be positioned in pixels is as follows:
Zoom Decimals Accuracy (pixels)
1 0 1.42
2 0 2.84
3 1 0.57
4 1 1.14
5 1 2.28
6 2 0.46
7 2 0.91
8 2 1.82
9 3 0.36
10 3 0.73
11 3 1.46
12 4 0.29
13 4 0.58
14 4 1.17
15 5 0.23
16 5 0.47
17 5 0.93
18 6 0.19
So the worse case is at zoom 2 where accuracy is still within 3 pixels.
Based on a patch by rjmunro.
2007-10-23 09:19:29 +00:00
Tom Hughes
63bd068f2e
Get URL selection right...
2007-10-10 15:00:13 +00:00
Tom Hughes
c941bc197c
Give OpenLayers three different hosts (all really pointing at tile) to
...
get mapnik tiles from so it loads tiles more quickly.
2007-10-10 14:45:44 +00:00
Tom Hughes
28e9a84da2
Fix automatic size detection for map popups.
2007-08-23 14:49:42 +00:00
Tom Hughes
8dfecbfbb2
Only the view and edit tabs really need updating when the map moves.
2007-08-14 10:44:56 +00:00
Tom Hughes
bea82b27ba
Return a pointer to the 404 tile for out of bounds latitudes.
2007-08-14 10:05:36 +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
397db07d65
New improved geocoder with extra added AJAX and OSM Namefinder support.
2007-08-07 17:09:37 +00:00
Tom Hughes
e8809a10f5
Ran "rake rails:update" to update resources to latest rails 1.2.3 ones.
2007-08-06 07:53:41 +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
743cb57e51
Remove scripts for old slippy map which are no longer used.
2007-06-30 16:30:28 +00:00
Tom Hughes
48a3a317bc
Use Math.PI instead of defining it ourselves (and sometimes forgetting).
2007-06-30 11:25:53 +00:00
Tom Hughes
2804e77cc3
With much assistance from kleptog, make the map wrap when zoomed right out.
2007-06-29 15:43:14 +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
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
9b446e75cb
Don't try and apply pngfix to OpenLayers tile images.
2007-06-15 13:36:28 +00:00
Tom Hughes
af5fa9e0ca
Upgrade OpenLayers to the 2.4 release.
2007-06-15 13:11:05 +00:00
Tom Hughes
e0013130c2
Don't try and update links on nodes whose names match member functions
...
of the JavaScript Array object...
2007-06-14 09:29:32 +00:00
Tom Hughes
7b9272ffa6
Make sure we always put a valid URL on the edit tab, and allow switching
...
to the editor to work from z11 instead of z14 as that is what Potlatch
supports.
Also fix default zooms for Potlatch when no position is given.
2007-06-13 10:02:37 +00:00
Tom Hughes
c99992f85f
Be a bit more intelligent when trying to update the arguments on a link.
2007-06-12 16:16:49 +00:00
John McKerrell
7c55604f27
Changed the account page to have the editing functionality built in.
...
Ability to specify home location by clicking on a map.
Ability to see nearby mappers on the map.
New colourful markers.
2007-05-05 15:02:54 +00:00
Richard Fairhurst
f4e4fefaa1
beginnings of Potlatch on Rails
2007-04-28 11:33:13 +00:00