Commit Graph

6 Commits

Author SHA1 Message Date
Markus Koch 255e81ce9f Improve location history
Before, script initiated moves would mess with the
history through hash updates partway through the move.

This commit fixes this behavior by checking for a
human source.
2020-04-19 10:45:26 +02:00
Markus Koch 1a2f9908fa editor: Prevent JS errors if no polyline has been drawn yet 2020-04-19 09:14:19 +02:00
Markus Koch 0859324a46 Add jump-to-coordinates feature and location history 2020-04-19 09:12:17 +02:00
Markus Koch 657867309e Improve center-on-block feature
6284c9d8b4 introduced a feature to
center coordinate data on blocks by shifting the actual waypoints.
The problem with that approach is that it actually changes the
coordinates returned by any subsequent query to that geojson entry,
leading to coordinates like [0.5, 0.5] instead of [0, 0].

This commit removes the old translation code and instead shifts the
entire map. This means waypoints are still correct, and only the
visuals are affected. The correctness of new coordinate mapping has
been verified in-game and using the origin marker.
2020-04-19 07:38:41 +02:00
Markus Koch c10f229f49 Remove debug print 2020-04-18 12:35:49 +02:00
Markus Koch de3a4fc757 Add street editor
Accessible by setting ?editor
2020-04-17 21:47:12 +02:00