Commit graph

219 commits

Author SHA1 Message Date
Tom Hughes
430978fab7 Improve context menu initialisation to avoid namespace pollution 2017-02-12 19:19:13 +00:00
Tom Hughes
043d29fd7e Merge remote-tracking branch 'openstreetmap/pull/1030' into next 2017-02-12 15:04:50 +00:00
Lars Sonchocky-Helldorf
df17b997b3 Add public gps tiles layer for debugging purposes
Fixes #1239
Closes #1406
2017-01-04 19:26:15 +00:00
Tom Hughes
6d9bddfa47 Patch classes on the locate control
This replaces the patching of the vendored source that we had been
doing before and which we always forget to apply after updating it.

Fixes #1306
2016-09-30 11:15:18 +01:00
Tom Hughes
9f817f8364 Set banner expiry correctly 2016-08-23 19:23:58 +01:00
Tom Hughes
31c81f108d Set all cookies on the root path 2016-08-17 10:04:57 +01:00
Tom Hughes
fb9afd32db Make banner cookies expire after one year
This avoids having lots of cookies stick around forever and
we shouldn't ever have a banner up for that long.
2016-08-17 10:02:50 +01:00
Bryan Housel
40abfdd316 remove debug statement 2016-06-20 19:19:20 -04:00
Bryan Housel
5e27978d3c Add support for rotating banners, add banners for SOTM, SOTMUS 2016-06-20 18:09:55 -04:00
Simon Legner
6c3fd1e053 Consistent blue marker colour for sharing location
Before, when adding a marker, it was coloured blue. After sharing the marker,
it was coloured red.
2016-03-08 23:59:55 +01:00
Dan Stowell
6b0451124c Fix missing semicolon warnings 2015-10-12 21:43:00 +01:00
Dan Stowell
35fbcf2815 Move contextmenu callbacks to separate file 2015-08-19 22:58:20 +01:00
Dan Stowell
e5b5faad72 tidier code 2015-08-09 19:29:37 +01:00
Dan Stowell
a2cf9b5b9f Enable/disable some context-menu options conditional on zoom 2015-08-09 19:11:36 +01:00
Dan Stowell
8d0472f2ca Allow users to get default contextmenu on shift-click 2015-08-09 12:11:07 +01:00
Dan Stowell
6e12650a45 Add "Query features" to context menu 2015-08-07 21:15:05 +01:00
Dan Stowell
cd61c8e065 Implement context menu with: directions, add note, describe, centre. 2015-08-05 22:30:41 +01:00
Tom Hughes
996d5413d8 Remove donation drive banner
Fixes #1003
2015-07-11 11:40:14 +01:00
Tom Hughes
9e2db4513e Change donation drive panel to a thank you
Closes #1001
2015-06-30 22:01:44 +01:00
Tom Hughes
876d5614da Add advert for donation drive 2015-06-16 10:38:29 +01:00
Tom Hughes
e2aef40437 URI encode the X-Page-Title header
Browsers's are inconsistent in how they interpret the encoding
of a response header in an XHR request, so URI encode it so that
it simple ASCII we can then decode it again in the browser.
2015-03-17 18:49:39 +00:00
Tom Hughes
db66e48847 Display tooltips on the right for RTL languages
Fixes #925
2015-03-09 22:29:18 +00:00
Tom Hughes
11af851248 Remove duplicate search handlers
Fixes #922
2015-03-05 00:34:06 +00:00
Tom Hughes
bd2e999756 Move some javascript functions out of global scope 2015-02-24 00:19:08 +00:00
Tom Hughes
1596713871 Fix some JSHint complaints 2015-02-23 21:45:57 +00:00
Matt Amos
321218f9b1 Make close button on route dialogue return to index. 2015-01-26 15:02:55 +00:00
Matt Amos
0cb475cc1a Merge remote-tracking branch 'upstream/master' into routing-merge
Conflicts:
	app/assets/javascripts/index.js
	config/locales/en.yml
2014-11-10 16:14:06 +00:00
Tom Hughes
f0ecc6312b Revert "Add SOTM advert"
This reverts commit 15a7276a9f.
2014-11-09 23:03:04 +00:00
Matt Amos
a3eb48385b Merge remote-tracking branch 'upstream/master' into routing
Conflicts:
	app/assets/javascripts/index.js
	app/assets/javascripts/leaflet.map.js.erb
	config/environments/production.rb
	config/locales/de.yml
2014-11-03 11:08:13 +00:00
Tom Hughes
501d13e1c0 Merge branch 'master' into overpass 2014-11-01 12:50:23 +00:00
Łukasz Gurdek
14ac1babc2 Changeset discussions
Add support for commenting on changesets with RSS feeds and email
notification of comments to other commenters and people that have
chosen to subscribe to a changeset.
2014-10-23 21:24:51 +01:00
Tom Hughes
69893849ca Don't pass the hash when routing an empty search query
Fixes #793
2014-10-13 14:04:19 +01:00
Tom Hughes
15a7276a9f Add SOTM advert 2014-09-04 15:25:56 +01:00
Tom Hughes
a70b61315c Merge branch 'master' into overpass 2014-06-15 14:54:39 +01:00
Tom Hughes
6e45410103 Force coordinates into range for "Where am I" queries
Fixes #753
2014-06-15 11:08:25 +01:00
John Firebaugh
f2bf38606e Permalinks for directions 2014-05-14 15:52:25 -07:00
John Firebaugh
2b252e8337 Refactor 2014-05-13 10:16:53 -07:00
John Firebaugh
be79156f43 OSM.Routing -> OSM.Directions
Too close of a name collision to OSM.Router.
2014-05-12 12:46:09 -07:00
Tom Hughes
203ba58bab Merge branch 'master' into overpass 2014-03-16 16:20:39 +00:00
Tom Hughes
078059b76b Initial work on overpass based query API 2014-03-16 16:18:12 +00:00
Tom Hughes
4cad1970fb Make sure the hash updates properly on browse pages
Rework the way the move listener is disabled during initial
positiong of pages to avoid accidentally leaving it disabled
for the first user move of the map in some cases.
2014-03-16 14:11:29 +00:00
Richard Fairhurst
9d8ab7dbd1 From->To->Go order as per @samanpwbb's comment 2014-03-10 16:55:01 +00:00
Richard Fairhurst
888db7a3b4 Firefox-friendly calculation of dragstart offset
(personally I am not feeling very Firefox-friendly right now)
2014-03-09 21:29:48 +00:00
Tom Hughes
b095b59d5e Merge remote-tracking branch 'origin/master' into routing
Conflicts:
	app/views/layouts/_search.html.erb
2014-03-08 17:44:22 +00:00
Richard Fairhurst
926c7b56a8 Zoom to fit when submitting form 2014-03-08 16:31:54 +00:00
Richard Fairhurst
9a05a7ba49 Put marker at exact position user dragged it to 2014-03-08 15:17:22 +00:00
Dan Stowell
f28676c07d fix firefox behaviour when dragging pointer from the tray to the map 2014-03-08 10:48:01 +00:00
Dan Stowell
628eea2b97 jsrouting: zoom to bbox on getting fresh geocoded route, but not on drag etc 2014-03-08 10:09:30 +00:00
Tom Hughes
1f22b625a0 Move cookieContent to OSM.locationCookie 2014-02-28 00:10:55 +00:00
Tom Hughes
66039dedb0 Move zoomPrecision function to the OSM namespace 2014-02-27 18:15:54 +00:00