Commit Graph

20 Commits

Author SHA1 Message Date
Markus Koch cf5dccbc3a Fix button behavior in editor
Stop event propagation of mouse up / down events.
2020-05-08 17:18:10 +02:00
Markus Koch f7000d1c5c Correct instructions 2020-04-25 18:16:16 +02:00
Markus Koch 4aa26434f8 Fix restart through clearing the coordinate list 2020-04-25 18:14:28 +02:00
Markus Koch 777905e7f1 Press escape in the editor to stop drawing 2020-04-25 18:08:23 +02:00
Markus Koch 035eb5a992 Add editor styling
This function is only partially working atm. It only applies
the style when resuming an existing dataset. When starting
from scratch, the default style will be used.
2020-04-25 18:08:02 +02:00
Markus Koch d229044ebf Fix coordinate order on popover, clean up resolve_latlng 2020-04-25 17:21:38 +02:00
Markus Koch 3cb3078820 Add editor mode for polygons 2020-04-20 18:51:10 +02:00
Markus Koch be16cf2f6e Automatically disable anti-aliasing on high zoom levels 2020-04-20 00:02:28 +02:00
Markus Koch b2958f15d7 Remove debug code 2020-04-19 23:29:16 +02:00
Markus Koch bfaacd813b Add street names to search 2020-04-19 23:09:26 +02:00
Markus Koch 94c05d5358 editor: Center on object after loading new coords 2020-04-19 22:26:35 +02:00
Markus Koch ab2e50f851 editor: Add reverse backwards drawing mode and improve the reset handler 2020-04-19 20:54:57 +02:00
Markus Koch 8ca10033f9 editor: Make polyline clearable 2020-04-19 20:42:45 +02:00
Markus Koch 90161e098a editor: Add function to reset path 2020-04-19 20:36:47 +02:00
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