Commit graph

123 commits

Author SHA1 Message Date
Andy Allan
624453948e Add a scale bar that changes with latitude (from OpenLayers 2.10) 2010-11-09 14:18:16 +00:00
Tom Hughes
2def7c187e Don't process overlay layers in old-style layer configurations
There are no overlay layers that we actually want to be persistent, and
the removal of the maplint layer means that old configurations generally
open the wrong overlays now anyway.
2010-08-13 15:13:30 +01:00
Tom Hughes
d87ea6863a Fix short links to drop the layers param for the default layer 2010-07-21 14:49:09 +01:00
Tom Hughes
ad116b2431 Don't change the visibility of layers with no code
When parsing a layer state ignore any layers with no code
attached rather than turning them off - this ensures that
the marker layer remains enabled and any markers can be
displayed.
2010-07-21 09:07:38 +01:00
Tom Hughes
53b0ace4c0 Remove maplint layer fron the map
Remove the maplint layer from the map and change the way layers are
encoded in URLs to make links more robust when the available layers
are changed.
2010-07-20 18:21:54 +01:00
Tom Hughes
fdbdc9f471 Fix typo. 2010-04-19 14:28:02 +01:00
Tom Hughes
79df86023c Add a keyid attribute to each layer and use it when requesting the
key instead of trying to use the layer name, which can be translated
which will stop it working. Closes #2876.
2010-04-19 14:28:02 +01:00
Tom Hughes
89cf0dbe9d Use Prototype methods to find the anchor nodes to make sure they get
extended with the Prototype extensions on all browsers.
2010-03-14 08:48:48 +00:00
Tom Hughes
dcbc807526 Improve user popups on friend/nearby mapper maps. 2010-03-11 18:23:22 +00:00
Tom Hughes
910937ae4b Use CSS to style the disabled tabs. 2010-03-11 08:58:48 +00:00
Tom Hughes
c6077fd124 Make the tooltips for the tabs a bit more consistent and make the edit
and history tooltips change when those tabs are disabled to explain that
the user needs to zoom in to use them.
2010-02-26 18:49:22 +00:00
Tom Hughes
639a994c9b Experimental support for reverse geocoding using the new geocoder. 2009-10-30 11:12:55 +00:00
Tom Hughes
78d4944caa Use a PanZoom control on small screens instead of a PanZoomBar control. 2009-10-23 23:31:19 +00:00
Tom Hughes
1466ab3492 Remove hack that was needed to cope with our old asset tagging but
which now does nothing except break installation in subdirectories.
2009-10-06 17:26:51 +00:00
Tom Hughes
f4dba81b64 Modify the existing i18n() javascript function to lookup strings in
the javascript i18n array as well as expanding arguments, and make all
lookups go through it.
2009-10-02 23:41:19 +00:00
Tom Hughes
596ab82461 Move javascript translations to a separate key based on the path to
the javascript file that uses them and amend the layout to automatically
find and output all javascript strings.
2009-10-02 23:33:17 +00:00
Tom Hughes
52126dc3c1 There is no need to translate the names of layers which are not shown
in the layer switcher.
2009-10-02 23:03:42 +00:00
Ævar Arnfjörð Bjarmason
4c84709c80 Follow up to [17948]: Make the layer switcher translatable too! 2009-10-02 20:39:47 +00:00
Ævar Arnfjörð Bjarmason
b0e1560875 Some of our JavaScript files have UI messages but we don't want to
make them dynamic.

So I'm creating a globally scoped JavaScript array called rails_i18n
which holds some of these messages. It's loaded in <head> before any
of the JavaScript files so it should always be available.
2009-10-02 20:19:28 +00:00
Tom Hughes
3d06c902f6 Remove scale bar. Closes #1704. 2009-09-15 16:01:50 +00:00
Tom Hughes
7a7c567436 Remove layers argument from the shortlink if we change to mapnik from
a non-mapnik layer.
2009-08-13 14:02:49 +00:00
Tom Hughes
7b07b8ccbf Set a pointRadius on the object style so nodes are visible. Fixes #2070. 2009-07-16 14:32:42 +00:00
Richard Fairhurst
369202787b Potlatch 1.1 (server code) 2009-07-08 20:52:02 +00:00
Matt Amos
57e571d241 Changed shortlink zoom level correction char to '-', as this seems to fare better with twitter et al.'s URL highlighting. Decoder is backwards-compatible with the old system. 2009-07-02 16:40:29 +00:00
Ævar Arnfjörð Bjarmason
85f317b46e Add B000FTFT (as well as B000FTF) to the list of layers we should
ignore when constructing the shortlink.

The shortlink was also broken for the new /?{node,way,relation}=id
construct since the code assumed that all URL parameters that weren't
lat/lon/zoom/layers could be safely ignored. I've added
node/way/relation to that list but for future-proofness it might be
better to simply check if there's anything left in ''args'' that we
don't know how to encode, rather than checking on values we know about
now.
2009-06-29 09:47:35 +00:00
Ævar Arnfjörð Bjarmason
b06f4750e1 I forgot to set fillColor/fillOpacity in commit [16214]. Without it
any area being rendered by OpenLayers would turn into a black hole
since the default fillOpacity is 100%.
2009-06-29 02:17:02 +00:00
Æ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