Commit graph

887 commits

Author SHA1 Message Date
Tom Hughes
d75c203ecf Add thunderforest API key to embedded maps
Fixes #1293
2016-09-21 20:05:00 +01:00
Tom Hughes
e0dd431e6c Propagate API keys to minimaps in layer switcher 2016-09-08 17:35:37 +01:00
Tom Hughes
322e7142ba Hide thunderforest layers when no API key is available 2016-09-08 17:28:54 +01:00
Tom Hughes
3eda7be919 Use an API key for thunderforest tile layers 2016-09-08 16:16:45 +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
Simon Legner
94f02270c1 Pan to first Nominatim search result
Fixes #919
Closes #1041
2016-08-15 20:58:07 +01:00
Tom Hughes
dae3dcf87e Merge remote-tracking branch 'openstreetmap/pull/1004' 2016-08-15 20:20:37 +01:00
Tom Hughes
078dc1a526 Correct icon mappings for non OSRM routers 2016-08-05 18:59:21 +01:00
Patrick Niklaus
311acad0c4 Add support for OSRM 5.0 API and new instruction types
Add support for the new API in OSRM 5.x including new icon sprites
for the new instruction types.
2016-08-05 18:55:16 +01:00
Tom Hughes
24ddb8657d Revert "Don't pass the locale to the Mapzen routing engine"
This reverts commit 38180c56c9.
2016-07-26 18:36:56 +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
Tom Hughes
16f8acd243 Remove more traces of MapQuest Open layer 2016-06-15 20:38:52 +01:00
Tom Hughes
fb234e2ecb Drop the MapQuest Open layer 2016-06-15 20:24:09 +01:00
Tom Hughes
6c4448b9f6 Increase overpass API timeout 2016-03-20 19:41:15 +00:00
Tom Hughes
a95748b168 Handle overpass errors reported as remarks
Not all overpass errors are reported as HTTP errors - some are
reported as HTTP success with a remark in the response.

Fixes #1178
2016-03-20 19:39:51 +00:00
Tom Hughes
945ff7911c Merge remote-tracking branch 'openstreetmap/pull/954' 2016-03-20 18:47:35 +00:00
Tom Hughes
38180c56c9 Don't pass the locale to the Mapzen routing engine
It only supports en-US currently, and passing anything else now
makes it error instead of falling back to en-US.
2016-03-15 10:03:18 +00:00
Tom Hughes
16f5a5ac0c Merge remote-tracking branch 'openstreetmap/pull/954' 2016-03-14 22:11:23 +00:00
Simon Legner
5f495b43d1 Notes: show first comment as marker tooltip 2016-03-14 23:00:45 +01:00
Simon Legner
359d030a5b Only the standard layer can be exported
Fixes #1141
Closes #1182
2016-03-14 21:04:31 +00:00
Florian Schäfer
fbf2b45ecc Make "Report a problem" link in embeddable map translateable 2016-03-09 19:26:59 +00:00
Tom Hughes
544ed36247 Enebale I18n for embedded maps 2016-03-09 19:26:31 +00:00
Florian Schäfer
151a48d7f3 Open new tab/window for "report a problem" link
This avoids closing whatever site the user was looking at when they
spotted he problem, and avoid problems when the embedded map is part
of an iframe as the problem report page denies embedding.
2016-03-09 19:23:03 +00: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
Tom Hughes
6e154d48c0 Ignore bounds on elements with geometry 2016-03-06 21:37:47 +00:00
Tom Hughes
0ff7a928e4 Fix query tool to get correct bounds for enclosing ways
The bounding box returned by overpass for geom output is only
the bounds for the clipped geometry, so fetch the geometry and
the bounding box separately and merge them client side.

Fixes #1156
2016-03-06 20:42:04 +00:00
Tom Hughes
e128e78408 Move routing API endpoint addresses to config file 2016-01-11 19:03:47 +00:00
Tom Hughes
67f3658431 Preserve URL fragments through external authentication
Fixes #1102
2015-12-12 16:08:09 +00:00
Tom Hughes
9dd5dabf86 Remove inline javascript from login page 2015-12-12 11:42:36 +00:00
Tom Hughes
ec9d2fde78 Merge remote-tracking branch 'openstreetmap/pull/1085' 2015-12-07 14:11:35 +00:00
Tom Hughes
e20bb507f1 Fix issues with bogus % encoded sequences in URLs
Add a URI sanitizer to the rack stack avoid rack throwing
exceptions on the server side, and ignore errors decoding
components on the client side.

Fixes #1101
2015-12-07 13:52:20 +00:00
Aditya Prakash
ed151fdb78 Hide .describe_location on push and popstate 2015-11-13 09:41:47 +05:30
Dan Stowell
6b0451124c Fix missing semicolon warnings 2015-10-12 21:43:00 +01:00
Tom Hughes
3932c6b7f2 User ferry icon for kFerryEnter with Mapzen routing 2015-10-12 21:17:57 +01:00
Simon Legner
ee5e4ac5a4 Add ferry routing information for OSRM
Relates to #1000.

Uses instruction code 18 to represent a ferry instruction. Ferry icon
taken from Mapbox Maki set (CC0).
2015-10-06 21:09:56 +02:00
Tom Hughes
3c771a7844 Improve error handling for routing engines 2015-09-30 21:58:16 +01:00
Tom Hughes
d1d784bcca Ensure assets are recompiled when configuration changes 2015-09-30 19:34:14 +01:00
Tom Hughes
8df1212b59 Scale total distance to metres for Mapzen 2015-09-30 17:22:27 +01:00
Tom Hughes
e54eadea95 Add support for Mapzen's Valhalla routing engine 2015-09-29 15:37:04 +01:00
Tom Hughes
24eaeb2653 Fix jshint warning 2015-09-28 15:01:41 +01:00
Tom Hughes
31c80f6646 Use jsonp for MapQuest as CORS doesn't seem to be working 2015-09-28 14:47:32 +01:00
Tom Hughes
38213ab588 Allow jQuery to construct the routing URLs 2015-09-28 14:43:36 +01:00
Tom Hughes
2d6fb571dc Make MapQuest API key conditional 2015-09-28 13:54:49 +01:00
Tom Hughes
7dd23a4b56 Move the MapQuest API key to the configuration file 2015-09-28 13:45:01 +01:00
Tom Hughes
db7374f2bb Merge remote-tracking branch 'openstreetmap/pull/1040' 2015-08-27 21:30:50 +01:00
Simon Legner
2520bdb9eb Close layers panel on double-clicking a layer
Relates to #465.
2015-08-26 23:31:36 +02:00
Simon Legner
6d511fbd34 Directions, read "to" location in URL - fixes #998 2015-08-26 21:38:39 +02:00