Commit graph

65 commits

Author SHA1 Message Date
Anton Khorev
771b75ed71 Replace query marker fade animation with css 2024-11-08 10:50:47 +03:00
Jakob Miksch
4f79ae4612
Typos in docs 2024-10-20 11:12:49 +02:00
Anton Khorev
039a7d6af7 Stretch query result links, listen to their over/out events, don't simulate clicks 2024-04-27 06:58:59 +03:00
Anton Khorev
63aaf045ac Remove action item class from non-action query results 2024-04-27 06:57:20 +03:00
Anton Khorev
0bd034a8e9 Use Bootstrap actionable items in query results 2024-04-24 03:44:35 +03:00
Tom Hughes
c94de1e1a3 Improve name selection with the query tool
Pass the full expanded list of preferred languages to the client
and use that when looking for the best name for an object.

Fixes #4310
2023-11-14 17:45:50 +00:00
Anton Khorev
ba888f5c7d Remove query result geometry when unloading the page 2022-11-01 02:09:51 +03:00
Anton Khorev
357d32c57c Remove query spinner show delay because the spinner is not hidden 2022-10-29 19:32:17 +03:00
Tom Hughes
a9063f8369 Allow credentials to be sent with overpass calls 2022-10-13 19:12:25 +01:00
Tobias Speicher
be878df097
Replace deprecated String.prototype.substr()
String.prototype.substr() is deprecated (see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr) so we replace it with slice() which works similarily but isn't deprecated.
Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
2022-02-20 22:11:11 +01:00
Tom Hughes
79447e7549 Replace querystring parser with qs yarn module 2020-08-06 20:51:55 +01:00
Tom Hughes
5b061ef690 Move jquery.simulate to be a yarn managed asset 2020-08-06 19:19:55 +01:00
Andy Allan
397d30c4e9 Add query-result classes for errors and nothing_found messages 2020-01-16 11:18:06 +01:00
Andy Allan
712e67ed4a Refactor the query results to use bootstrap list-group-flush 2020-01-08 16:00:18 +01:00
mmd-osm
549be4adba Overpass query to use map precision 2019-08-21 10:13:41 +02:00
Tom Hughes
6dd451c7ee Stop creating a shared global querystring variable 2019-07-15 20:28:54 +01:00
Tom Hughes
a47c0a4411 Update querystring references 2019-07-15 10:03:09 +01:00
Tom Hughes
492a640530 Enable a few more eslint checks 2019-07-14 12:08:02 +01:00
Tom Hughes
c4c0e8105a Enforce consistent indentation in javascript code 2019-07-14 10:52:18 +01:00
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