Commit graph

147 commits

Author SHA1 Message Date
Ævar Arnfjörð Bjarmason
b46b3c4327 The default OpenLayers.Layer.GML style can be nearly invisible when
viewed on the main map.

Set a style that's blue (since not a lot of things on the map are
blue), with strokeWidth 3 and opacity 50%. It makes things visible
enough without being too intrusive.
2009-06-29 02:11:34 +00:00
Tom Hughes
e46c82fe3d Tidy up some recent commits:
- Simplify shortlinkPrefix by removing redundant code.
- Factor out duplicate code for displaying objects on maps.
- Reindent some stuff to make it more readable.
2009-06-27 17:11:54 +00:00
Ævar Arnfjörð Bjarmason
d63f13c18d Make ?{node,way,relation}=id GET argumens work for the shortlink as
well as the permalink.
2009-06-27 16:11:21 +00:00
Ævar Arnfjörð Bjarmason
05bc2b70ed Only hardcode http://osm.org/ in shortlinks when we're at
openstreetmap.org (according to window.location.hostname).

Solves ticket:1994 and my headaches when trying to hack railsport
locally.
2009-06-27 16:07:53 +00:00
Ævar Arnfjörð Bjarmason
34b147266c Change the feature commited in [16174] to use the main map view
instead of being located at /map.
2009-06-27 15:34:26 +00:00
Thomas Wood
8207c39859 Fix the nonames layer URLs, as missed in the changes to OpenStreetMap.js earlier. (Due to move from our own OSM class to the OL provided one which relies on XYZ) 2009-06-26 22:59:51 +00:00
Shaun McDonald
ddf44b07c8 Hard code osm.org into the shortcode permalink. 2009-06-26 11:02:00 +00:00
Matt Amos
1d8e66016c Adding 'shortlink' functions which will allow URLs like http://osm.org/go/XXXX suitable for use in twitter, etc... 2009-06-25 23:31:53 +00:00
Tom Hughes
fc398f6441 Rework the javascript I18n interpolation a bit - the interpolation function
is now in site.js so everything can use it, and the syntax has changed a bit
to avoid the need for double interpolation.
2009-06-07 08:32:39 +00:00
Tom Hughes
044febd3aa Disabled edit tab until z13 is reached. 2009-05-27 13:34:50 +00:00
Shaun McDonald
62f999cd83 Updating for rails 2.2.2 2009-05-08 18:04:08 +00:00
Harry Wood
1c93d482d2 change updatelinks params so that Potlatch can pass in the view bbox. Also check if it's missing. closes #1738 2009-04-23 14:38:40 +00:00
Thomas Wood
d7663e7d14 Fix multiple issues with links to /history from the homepage. Thanks to Ed Avis for bringing this to our attention. 2009-04-22 17:08:04 +00:00
Thomas Wood
c29c7cd56c Fix map in IE by deferring Vector layer addition to page load (note that deferred script running is _not_ the same as onload), also only add the Vector layer as required, so to save some overhead.
I've trimmed down the unrequired options on the layer, they're defaulted from the map.
Thanks firefishy for the report.
2009-04-19 21:03:41 +00:00
Tom Hughes
8f8de8deaa Reverse order of marker and vector layers to stop the vector layer
grabbing all the mouse clicks. Closes #1718.
2009-04-19 11:12:28 +00:00
Tom Hughes
d97cfc35d6 Remove trailing comma to make IE happy. 2009-04-18 16:45:45 +00:00
Tom Hughes
47350833fc Make the box outline the same colour as the ways and points drawn
in the data browser maps.
2009-04-08 23:52:39 +00:00
Tom Hughes
7daa4f5d2b Tidy up new box code. 2009-04-08 23:14:50 +00:00
Harry Wood
fdd5d2d779 new support for box=yes param on the homepage, and then link to this from various changeset display 2009-04-08 16:55:22 +00:00
Harry Wood
0f3e5a28c0 show a 'no bbox specified' message for the moment at least. Due to inconsistent location detecting across tabs, the history tab often gets nil bbox (Need to fix for all tabs) + other history tab tweaks 2009-03-24 11:23:56 +00:00
Harry Wood
d3c6087409 js changes for 'history' tab 2009-03-23 16:41:18 +00:00
Thomas Wood
71938aef1d Copying across fix for #1547 from trunk 2009-01-31 13:12:19 +00:00
Shaun McDonald
bf29550db8 Resyncing from head 10895:11795 2008-11-08 11:52:58 +00:00
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
Tom Hughes
0b8449d2c9 Set the displayProjection on the map. 2008-10-09 11:51:51 +00:00
Tom Hughes
fb1d36623b Make sure the zoom level is valid when positioning the map. Closes #1158. 2008-10-04 23:44:41 +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