Open
Description
After running a fresh instance of VM build by packer map v3 is not working. After click on map in php error log I see many:
[Sat Jul 15 19:23:40.997640 2023] [php:notice] [pid 779] [client 192.168.56.1:49466] Division by zero, referer: http://local.opencaching.pl/MainMap/embeded
Exception is thrown from here: https://github.com/opencaching/okapi/blob/master/okapi/services/caches/map/TileTree.php#L307-L312
And due to some reasons is not correctly handled by code here:
https://github.com/opencaching/okapi/blob/master/okapi/services/caches/map/TileTree.php#L279-L284
This leads to errors on client side:
For 9.0-beta release I just started builded VM, changed all lat and lon that was == 0, left the VM for 1h and OKAPI finished building of tiles tree.
I don't think this is an option for next releases. We can:
- deliver VM without OKAPI tiles tree generated (I believe this is what Adjust shrink and prepare script #9 will happen after anyway. Previous version of VM's also was delivered without those OKAPI data?)
- improvements about OKAPI?
- trigger somehow tiles tree rebuilding from ansible/packer run and deliver VM with already prepared tiles.