map: fix wrong URL for preview

pull/417/head
Varun Patil 2023-02-09 18:14:12 -08:00
parent fc18e551fb
commit efcf9a9e91
2 changed files with 2 additions and 9 deletions

View File

@ -42,9 +42,8 @@ trait TimelineQueryMap
$lat = $query->createFunction('AVG(c.lat) AS lat');
$lon = $query->createFunction('AVG(c.lon) AS lon');
$count = $query->createFunction('COUNT(m.fileid) AS count');
$update = $query->createFunction('MAX(c.last_update) as u');
$query->select($lat, $lon, $update, $count)
$query->select($lat, $lon, $count)
->from('memories_mapclusters', 'c')
;
@ -81,7 +80,6 @@ trait TimelineQueryMap
(float) $cluster['lon'],
],
'count' => (float) $cluster['count'],
'u' => (int) $cluster['u'],
];
if (\array_key_exists('id', $cluster)) {
$c['id'] = (int) $cluster['id'];

View File

@ -55,7 +55,6 @@ const STAMEN_ATTRIBUTION = `Map tiles by <a href="http://stamen.com">Stamen Desi
type IMarkerCluster = {
id?: number;
u?: any;
center: [number, number];
count: number;
preview?: IPhoto;
@ -129,11 +128,7 @@ export default defineComponent({
},
clusterPreviewUrl(cluster: IMarkerCluster) {
let url = getPreviewUrl(cluster.preview, false, 256);
if (cluster.u) {
url += `?u=${cluster.u}`;
}
return url;
return getPreviewUrl(cluster.preview, false, 256);
},
zoomTo(cluster: IMarkerCluster) {