Shaun McDonald
4da22eee1a
reverting the javascript change in changeset 10926, that needs to be specific to each rails setup (if run out of another dir), until we turn the file into an erb that can insert the rails root into the javascript file
2008-10-10 13:27:21 +00:00
Shaun McDonald
56c972577b
fixing hard coded images/scripts, so that the site works better when deploy as a sub directory using passenger phusion.
2008-09-26 15:17:30 +00:00
Tom Hughes
4c2f24440d
Add the noname layer to the main map.
2008-09-09 17:50:09 +00:00
Tom Hughes
960d13488a
Merge 7922:8377 from trunk.
2008-06-22 12:23:43 +00:00
Tom Hughes
c25a20ff13
Don't try and parse an empty string as a layer config, and cope a bit
...
better if we do hit the end of the string. Closes #942 .
2008-06-02 12:45:24 +00:00
Tom Hughes
88105d9c64
Merge 7744:7922 from trunk.
2008-05-28 16:37:31 +00:00
Tom Hughes
436012c697
Make the layer attribute a bit less fragile - base layers and overlays are
...
now treated separately so that adding a new base laser doesn't break things.
2008-05-20 23:37:06 +00:00
Tom Hughes
0623e88d39
Add the cycle map to the main site.
2008-05-19 09:57:58 +00:00
Tom Hughes
4d8ea0eed0
Only add the data layer to the main map, and use the visibility changed
...
event to handle turning the data layer on and off.
2008-05-11 14:41:11 +00:00
Tom Hughes
5620d7263a
Merge 7452:7744 from trunk.
2008-05-09 23:22:26 +00:00
Tom Hughes
935656bfbe
Underline links in the SOTM box.
2008-04-27 15:40:48 +00:00
Christopher Schmidt
e6de9accd2
move data into a layer in the layerswitcher
2008-04-23 13:59:41 +00:00
Christopher Schmidt
e03605929b
Fix offset when laying in vectors on top of the OSM tiles.
2008-04-20 13:16:29 +00:00
Tom Hughes
db30a423a8
Commit crschmdt's data browser patch.
2008-04-20 12:20:23 +00:00
Tom Hughes
ab62a4b453
Do the transform the right way round.
2008-04-19 14:32:40 +00:00
Tom Hughes
ff10be4855
Use the right variable for the event.
2008-04-19 14:27:57 +00:00
Tom Hughes
97a4e25f90
Add numZoomLevels to the map.
2008-04-19 14:00:11 +00:00
Tom Hughes
52a6df0548
Simplify URLs a bit.
2008-04-17 17:38:48 +00:00
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