Commit graph

42 commits

Author SHA1 Message Date
Tom Hughes
f612f573f9 Wrap longitude values explicitly
Leaflet 0.5 no longer wraps longitude values, so we need to do it.
2013-01-22 22:29:50 +00:00
Tom Hughes
6bde69a840 Update to Leaflet 0.5 2013-01-17 17:44:10 +00:00
John Firebaugh
05eba79008 Move "Browse Map Data" to layers control
Fixes https://trac.openstreetmap.org/ticket/4680
2012-11-29 18:23:41 +00:00
Tom Hughes
8e27c78d3c Fall back to the mapnik layer
If there are no known layers in the layers string, then fall back to
showing the standard mapnik layer.
2012-11-23 19:00:51 +00:00
Tom Hughes
0c2d538aa7 Use the small zoom control in the small screen layout 2012-11-22 12:54:37 +00:00
Tom Hughes
f6ac8ffbab Tidy up 2012-11-22 12:35:49 +00:00
Tom Hughes
62ba6b50ba Replace OSM markers with recolured versions of the Leaflet marker 2012-11-21 18:43:20 +00:00
John Firebaugh
9bd48640ad Move popup anchor definition to icon 2012-11-09 15:57:31 -08:00
John Firebaugh
f913b7d8a5 Use nicer markers 2012-11-09 13:31:29 -08:00
John Firebaugh
1927bc6ca8 Fix user map icon and offset 2012-11-09 12:59:31 -08:00
John Firebaugh
648f232596 Inline map.js marker functions 2012-11-09 12:59:31 -08:00
John Firebaugh
66f0a4da04 Fix L.Icon.Default.imagePath in production 2012-11-09 12:59:30 -08:00
John Firebaugh
6f793e1b21 Pan/zoom controls that look like the OL ones 2012-11-09 12:59:28 -08:00
John Firebaugh
babefbba6c IE compatibility 2012-11-09 12:59:28 -08:00
John Firebaugh
64eec2a5d0 Use L.OSM tile classes 2012-11-09 12:59:28 -08:00
John Firebaugh
030b7c4052 Update leaflet-osm 2012-11-09 12:59:28 -08:00
John Firebaugh
19bac47e5f Don't show map controls on browse pages 2012-11-09 12:59:27 -08:00
John Firebaugh
30ad58c01f Port to Leaflet 2012-11-09 12:59:27 -08:00
John Firebaugh
24c0bb1c88 Use proj/unproj consistently 2012-10-13 12:58:18 +01:00
John Firebaugh
4f552430b4 Remove unnecessary delete statement 2012-10-05 19:37:21 +01:00
John Firebaugh
e4ef507c5c Extract OSM.apiUrl 2012-10-05 15:26:54 +01:00
John Firebaugh
b5ca3b12d1 Remove unused function 2012-10-05 15:00:32 +01:00
John Firebaugh
3b1f455dd9 Extract layer configuration to map.js 2012-09-16 16:25:33 +01:00
John Firebaugh
7ff77d9d3d Trigger map.updateSize() via a custom event 2012-09-07 13:04:48 -07:00
Tom Hughes
7ad58d1411 Switch to using i18n-js for handling translations in javascript 2012-08-27 18:00:03 +01:00
Tom MacWright
b812c070f1 Replace standard PanZoomBar control with new SimplePanZoom control 2012-08-08 18:20:02 +01:00
Tom Hughes
2a11b9682c Use a custom OpenLayers theme
Instead of having a customised copy of the default theme in the
app assets, use a custom theme that pulls in the default one and
then overrides things as needed.
2012-08-02 19:15:12 +01:00
Sarah Hoffmann
d97d3f76a6 Replace PanZoom control with Zoom control for small maps
In OpenLayers 2.12 the event handling of PanZoom and PanZoomBar clashes
with the result that the zoom level changes by two steps every time one
of the zoom buttons is pressed. Using the Zoom control fixes this issue.
2012-07-16 18:05:02 +01:00
Tom Hughes
efb80f8143 Update offset for marker icon to accurately position it 2012-07-12 21:02:18 +01:00
Tom Hughes
8e1b0b6908 Remove obsolete maxExtent from marker layer 2012-07-12 19:49:27 +01:00
Tom Hughes
b0453833b1 Replace use of Layer.GML with Layer.Vector 2012-06-28 18:18:42 +01:00
Tom Hughes
bad28a6478 Update OpenLayers to 2.12 2012-06-28 10:48:56 +01:00
Tom MacWright
8f4ed911e0 Introduce a new layer switcher
The new layer switcher behaves the same as the standard one but
has less cruft and more attractive styling.
2012-03-28 21:06:08 +01:00
Tom MacWright
701325e9ef Change abstraction level for map functions
This commit should have no functional affect. It just changes the
abstraction level of OpenLayers from completely abstracting away
getMapExtent etc, to using OpenLayers's functionality directly but
providing proj and unproj to make projections palatable.
2012-03-14 19:01:45 +00:00
Tom Hughes
b61e414356 Rename "Mapnik" to "Standard" in the layer switcher 2012-03-01 12:18:55 +00:00
Tom Hughes
acbd254e4a Remove the osmarender map layer 2012-03-01 09:45:41 +00:00
Tom Hughes
477b765c42 Force all OpenLayers resources to load through the asset pipeline 2011-11-25 23:00:30 +00:00
Tom Hughes
759f51a57c Never disable a base layer 2011-11-25 13:45:25 +00:00
Tom Hughes
8af92f463b Add attribution to cycle and transport layers 2011-11-25 11:59:17 +00:00
Tom Hughes
9c10e6703e Add attribution to the MapQuest layer 2011-11-25 11:55:38 +00:00
Tom Hughes
671fe0bb91 Remove the noname layer and add the transport and MapQuest layers 2011-11-25 11:55:12 +00:00
Tom Hughes
c61d24f08e Use asset_path to find the arrow icon 2011-11-15 10:48:30 +00:00
Renamed from app/assets/javascripts/map.js (Browse further)