Commit graph

83 commits

Author SHA1 Message Date
Marwin Hochfelsner
77b1c8015f Add basic PWA geo protocol handler 2025-03-12 17:12:31 +01:00
Anton Khorev
4e9483e5eb Use location instead of window.location and document.location 2025-03-01 12:01:31 +03:00
Tom Hughes
c47cb299a8 Replace uses of var with let or const as appropriate 2025-02-16 11:14:13 +00:00
Marwin Hochfelsner
3fbc8a3d32 Enable a few linting rules 2025-02-10 20:10:13 +01:00
Tom Hughes
e206dd527e Merge remote-tracking branch 'upstream/pull/5598' 2025-02-06 20:27:32 +00:00
Marwin Hochfelsner
bc18e85d5c Add eslint-plugin-erb for .js.erb file linting
* Add eslint-plugin-erb to provide linting of our .js.erb files
* Lint osm.js.erb and API-ify OSM.params()
---------
Co-authored-by: Andy Allan <git@gravitystorm.co.uk>
2025-02-05 17:00:38 +01:00
Marwin Hochfelsner
500f0e49b8 Collect parseFloat/Int and restructure mapParams 2025-02-04 06:53:20 +01:00
Tom Hughes
46cd3a1114 Replace qs with URLSearchParams 2025-02-02 19:27:20 +00:00
Marwin Hochfelsner
4b6b49801c Add coordinate precision function 2025-02-02 01:37:07 +01:00
Andy Allan
6b06be5e5d Fix some eslint errors (quotes, spacing and parseInt radix) on .js.erb files
These have been flagged by eslint-plugin-erb, and need to be fixed before
that plugin can be enabled.
2025-01-24 14:38:13 +00:00
mmd-osm
18fd80ebb7 Consistent usage of layer information in _osm_location cookie
Fixes #3971
2025-01-21 18:08:50 +01:00
Anton Khorev
126a987aa8 Move layer definitions to yml 2024-11-22 03:16:20 +03:00
Anton Khorev
1951ed2eb8 Change zoom precision function
This changes the number of fractional digits to log10(pixels / degrees) with pixels = 2**(8 + zoom) and degrees = 180.
2024-08-17 11:44:05 +03:00
Hidde Wieringa
b2fcf003f8 Convert note markers to SVG 2024-05-15 00:28:00 +01:00
Anton Khorev
857e9179b8 Read layers with available map key from config/key.yml 2023-11-24 16:38:38 +03:00
Paul Norman
00d085ed5d
Add Tracestrack Topo as featured layer 2023-09-19 22:16:42 -07:00
Christian Beiwinkel
85f627c5c2 added valhalla routing engine 2022-12-16 17:05:36 +01:00
Anton Khorev
8bc7793d42 Replace spinners in javascript 2022-11-01 00:19:13 +03:00
Tom Hughes
a9063f8369 Allow credentials to be sent with overpass calls 2022-10-13 19:12:25 +01:00
Anton Khorev
a419f8890a Load note from edit link with remote control 2022-10-06 00:42:04 +03:00
Tom Hughes
e9f62a8c30 Rename piwik to matomo and merge configuration into settings 2022-08-01 22:42:04 +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
32cc04fa5c Switch to using js-cookie to manage cookies from javascript 2021-05-17 18:57:48 +01:00
Tom Hughes
a78da07f0b Correct path for mapnik marker images
Fixes #2759
2020-08-08 11:00:47 +01:00
Tom Hughes
79447e7549 Replace querystring parser with qs yarn module 2020-08-06 20:51:55 +01: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
141df02e67 Move status into the settings object
Only the very early boot code needs to look at the value
from the environment directly.
2019-03-17 11:15:34 +00:00
Andy Allan
b3e74b0650 Instruct sprockets to recompile this file based on the settings files changing 2019-03-13 18:06:23 +01:00
Andy Allan
d102c9aaf4 Move all settings to settings.yml
We leave the STATUS setting alone, since it's required before rails
boots. The test-specific settings now live in config/settings/test.yml
2019-03-13 18:06:23 +01:00
Simon Poole
26102f581f Remove old MapQuest Directions routing support 2019-01-29 20:19:36 +00:00
Simon Poole
067290f19f Remove old OSRM routing support 2019-01-29 20:19:36 +00:00
Simon Poole
8937099429 Add support for FOSSGIS routing server 2019-01-29 20:19:36 +00:00
Tom Hughes
83d97699cc Use configured server protocol for shared URLs
Closes #939
2018-02-05 21:03:45 +00:00
Tom Hughes
9340c46173 Remove dependencies on mapzen services 2018-01-02 18:45:20 +00:00
Tom Hughes
d7b4f88d5e Remove inline javascript from page header 2017-03-01 21:19:32 +00:00
Tom Hughes
d13348c0ea Remove inline javascript from user views 2017-02-27 22:51:03 +00:00
Tom Hughes
3eda7be919 Use an API key for thunderforest tile layers 2016-09-08 16:16:45 +01:00
Tom Hughes
e128e78408 Move routing API endpoint addresses to config file 2016-01-11 19:03:47 +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
Tom Hughes
d1d784bcca Ensure assets are recompiled when configuration changes 2015-09-30 19:34:14 +01:00
Tom Hughes
e54eadea95 Add support for Mapzen's Valhalla routing engine 2015-09-29 15:37:04 +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
1dae6a712e Fix path for icons in the leaflet images directory
Fixes #910
2015-02-24 17:04:25 +00:00
Tom Hughes
e256c837b5 Eliminate templating from most javascript 2015-02-23 21:45:57 +00:00
Tom Hughes
5f970fe334 Make overpass server URL configurable 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
0de6885a91 Drop client side parsing of lat/lon parameters
The server always redirects these to a new style link with the
position in the hash, so we don't need to do it client side
2014-03-16 12:56:32 +00:00
Tom Hughes
8c9992f695 Apply zoomPrecision to location cookie 2014-02-28 00:26:34 +00:00