Fix geojson bounds center calculation
Deploy Livetrail / deploy (push) Successful in 1m14s

This commit is contained in:
franzz committed 2026-10-23 11:17:44 +02:00
1 parent 13a60c8cc4
commit 518e74dfb8
3 files changed
+92 -85

No files matched your search

+4 -3
View File
@@ -139,9 +139,10 @@ class Project extends PhpObject {
//Update geoJSON
if(Converter::hasGpxFile($sCodeName) && (!Converter::isGeoJsonValid($sCodeName) || !$asProject['latitude'] && !$asProject['longitude'])) {
$aiCenter = Converter::convertToGeoJson($sCodeName)['center'];
$this->oDb->updateRow(self::PROJ_TABLE, $asProject['id'], ['latitude' => $aiCenter[1], 'longitude' => $aiCenter[0]]);
$asProject['latitude'] = $aiCenter[1];
$asProject['longitude'] = $aiCenter[0];
$asProject['longitude'] = $aiCenter['longitude'];
$asProject['latitude'] = $aiCenter['latitude'];
$this->oDb->updateRow(self::PROJ_TABLE, $asProject['id'], ['latitude' => $asProject['latitude'], 'longitude' => $asProject['longitude']]);
}
switch($asProject['mode']) {