Commit Graph

15 Commits

Author SHA1 Message Date
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