Commit graph

46 commits

Author SHA1 Message Date
Tom Hughes
5bd59e1936 Enable a number of eslint style rules 2019-04-07 17:02:39 +01:00
Tom Hughes
eb7678145a Use double quotes consistently in javascript code 2019-04-06 15:59:34 +01:00
Tom Hughes
1ecf146766 Add terminating semicolon to overpass query
Fixes #1843
2018-04-30 18:54:31 +01:00
Tom Hughes
256460a2d9 Fix jshint warning 2018-01-08 20:30:51 +00:00
Tom Hughes
be86e4824f Convert various URLs to https 2018-01-08 20:18:21 +00:00
mmd-osm
7fd1e55938 Discard empty ways from query result geometries
Fixes #1608
2017-08-10 19:49:50 +01:00
Tom Hughes
4b43396ede Rename 'clickable' to 'interactive' per leaflet 1.x change 2017-02-24 23:10:12 +00: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
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
2d22ab10f7 Force coordinates into bounds when using the query tool 2015-02-25 11:16:10 +00:00
Tom Hughes
6d124f8012 Fix some more JSHint issues 2015-02-24 00:30:25 +00:00
Tom Hughes
1596713871 Fix some JSHint complaints 2015-02-23 21:45:57 +00:00
Tom Hughes
b00b156ef4 Prefer a key=value match over a key only match for object descriptions 2014-11-24 11:00:24 +00:00
Tom Hughes
4abb666ef0 Handle unknown admin_level values 2014-11-07 19:17:34 +00:00
Tom Hughes
526ff06172 Allow query mode to be turned off at low zoom
Fixes #830
2014-11-07 15:58:05 +00:00
Tom Hughes
2992564276 Look for locale specific names 2014-11-07 15:19:30 +00:00
Tom Hughes
cddec72be5 Don't do the admin boundary special case unless admin_level is set 2014-11-07 15:00:22 +00:00
Paul Norman
758e6da9a8 Add KSJ2 tags to uninteresting list
The KSJ2 tags often appear on nodes with no interesting tags
as import cruft.
2014-11-07 08:20:40 +00:00
Tom Hughes
6b09732854 Don't enable query mode when loading a query URL 2014-11-05 21:03:14 +00:00
Tom Hughes
e78ab8d0d6 Allow query mode to be disabled when the sidebar is open 2014-11-05 13:57:52 +00:00
Tom Hughes
9c7e0e13d7 Sort enclosing features by size 2014-11-04 10:24:36 +00:00
Tom Hughes
c4746efdb5 Don't centre on load if the location is already in view 2014-11-01 17:55:21 +00:00
Tom Hughes
9b26dc79c6 Use new overpass geometry output support to get geometeries 2014-11-01 17:55:21 +00:00
Tom Hughes
676e624928 Ignore clicks on query results if the mouse has moved 2014-03-31 11:33:27 +01:00
Tom Hughes
ca07fe853c Remove highlight from map when clicking on a feature 2014-03-28 22:48:22 +00:00
Tom Hughes
8642e4c1f3 Stop query button disabling query mode once it is active 2014-03-28 22:44:59 +00:00
Tom Hughes
50ea797f33 Add https support for overpass 2014-03-25 18:58:21 +00:00
Tom Hughes
2e05669a22 Add comment describing the overpass queries we use 2014-03-17 09:19:14 +00:00
Tom Hughes
03f3fd5954 Simplify overpass query for nearby objects 2014-03-17 09:14:42 +00:00
Tom Hughes
d5fdc0855a Add an error handler for overpass AJAX calls 2014-03-17 00:24:29 +00:00
Tom Hughes
1f250c45bd Make sure the query location is always in view 2014-03-16 16:47:27 +00:00
Tom Hughes
5452cfeb08 Pivot areas to the underlying way or relation object 2014-03-16 16:18:13 +00:00
Tom Hughes
b87e60e0b6 Abort any existing requests when starting new ones 2014-03-16 16:18:13 +00:00
Tom Hughes
5f970fe334 Make overpass server URL configurable 2014-03-16 16:18:13 +00:00
Tom Hughes
913da4a8db Use POST for overpass queries 2014-03-16 16:18:13 +00:00
Tom Hughes
77e39800d5 Build and show partial geometries for relatons 2014-03-16 16:18:13 +00:00
Tom Hughes
ca35ac16e7 Consider addr:housename as a name source for features 2014-03-16 16:18:13 +00:00
Tom Hughes
b6438f5a9e Style feature in query mode to match browse mode 2014-03-16 16:18:13 +00:00
Tom Hughes
606ac76108 Disable query feature tool below z14 2014-03-16 16:18:13 +00:00
Tom Hughes
8a70e1c082 Increase search radius at lower zooms 2014-03-16 16:18:13 +00:00
Tom Hughes
dedd87da28 Show a message when no features are found 2014-03-16 16:18:13 +00:00
Tom Hughes
e329bf37c0 Improve styling of feature list 2014-03-16 16:18:13 +00:00
Tom Hughes
479b22ca77 Filter out nodes which are too far away 2014-03-16 16:18:13 +00:00
Tom Hughes
078059b76b Initial work on overpass based query API 2014-03-16 16:18:12 +00:00