diff --git a/src/Service/MapModuleDataProvider.php b/src/Service/MapModuleDataProvider.php index 06f8010..78a200a 100644 --- a/src/Service/MapModuleDataProvider.php +++ b/src/Service/MapModuleDataProvider.php @@ -103,31 +103,6 @@ class MapModuleDataProvider } if ($includeEvents) { - foreach ($this->fetchLocationRows($locationTable, $locationGeoColumns) as $row) { - $id = (int) ($row['id'] ?? 0); - - if ($id <= 0 || isset($seen['location'][$id])) { - continue; - } - - $coords = $this->extractCoordinates($row['latitude'] ?? null, $row['longitude'] ?? null); - - if (null === $coords) { - continue; - } - - $seen['location'][$id] = true; - $items[] = [ - 'type' => 'location', - 'markerType' => 'location', - 'id' => $id, - 'title' => trim((string) ($row['title'] ?? '')), - 'latitude' => $coords['latitude'], - 'longitude' => $coords['longitude'], - 'extra' => [], - ]; - } - foreach ($this->fetchEventRows($locationTable, $locationGeoColumns) as $row) { $id = (int) ($row['event_id'] ?? 0);