Modify view on map link

This commit is contained in:
D. Berge
2022-03-29 23:08:58 +02:00
parent e517e2f771
commit c2eb82ffe7

View File

@@ -829,7 +829,7 @@ export default {
viewOnMap(item) {
if (item?.meta && item.meta?.geometry?.type == "Point") {
const [ lon, lat ] = item.meta.geometry.coordinates;
return `map#15/${lon.toFixed(6)}/${lat.toFixed(6)}`;
return `map#z15x${lon.toFixed(6)}y${lat.toFixed(6)}::${lon.toFixed(6)},${lat.toFixed(6)}`;
} else if (item?.items) {
return this.viewOnMap(item.items[0]);
}