Markus Koch
657867309e
Improve center-on-block feature
6284c9d8b45b4df112326c23037a5c7c2e0b89d0 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.
Description
Fork of git@bananach.space:lifomapserver.git
Languages
JavaScript
88.8%
Shell
9%
HTML
1.9%
PHP
0.3%