Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.
TypeScript albumsexif-extractiongeocodinglive-photomotion-photophoto-galleryphoto-sharingwebgl-viewer
fix(explore): 修复地图示例加载完毕前照片标记点堆积在屏幕左上角
Timothy Yin79ecfa84b217
diff --git a/app/pages/explore.vue b/app/pages/explore.vueindex fdbe154c..b6b9df8b 100644--- a/app/pages/explore.vue+++ b/app/pages/explore.vue@@ -263,28 +263,32 @@ const resetMap = () => {@zoom="onMapZoom"><!-- Cluster pins -->- <LazyMapClusterPin- v-for="clusterPoint in clusterGroups"- :key="`cluster-${clusterPoint.properties.marker?.id}`"- :cluster-point="clusterPoint"- :is-selected="- clusterPoint.properties.marker?.id === currentClusterPointId- "- @click="onMarkerPinClick"- @close="onMarkerPinClose"- />+ <template v-if="!!mapInstance">+ <LazyMapClusterPin+ v-for="clusterPoint in clusterGroups"+ :key="`cluster-${clusterPoint.properties.marker?.id}`"+ :cluster-point="clusterPoint"+ :is-selected="+ clusterPoint.properties.marker?.id === currentClusterPointId+ "+ @click="onMarkerPinClick"+ @close="onMarkerPinClose"+ />+ </template><!-- Single photo pins -->- <LazyMapSinglePhotoPin- v-for="clusterPoint in singleMarkers"- :key="`single-${clusterPoint.properties.marker?.id}`"- :cluster-point="clusterPoint"- :is-selected="- clusterPoint.properties.marker?.id === currentClusterPointId- "- @click="onMarkerPinClick"- @close="onMarkerPinClose"- />+ <template v-if="!!mapInstance">+ <LazyMapSinglePhotoPin+ v-for="clusterPoint in singleMarkers"+ :key="`single-${clusterPoint.properties.marker?.id}`"+ :cluster-point="clusterPoint"+ :is-selected="+ clusterPoint.properties.marker?.id === currentClusterPointId+ "+ @click="onMarkerPinClick"+ @close="onMarkerPinClose"+ />+ </template></MapboxMap></motion.div></div>