Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ba321fdc23 |
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user