|
|
|
|
@ -43,7 +43,8 @@ export function KartaPage() {
|
|
|
|
|
|
|
|
|
|
const handleAddressClick = (id) => {
|
|
|
|
|
setSelected(id)
|
|
|
|
|
id > 0 && articles && mapRef.current?.flyTo({ center: Object.values(articles.find(e => e.id == id).attributes.coordinates).slice(1) })
|
|
|
|
|
const { longitude, latitude } = articles.find(e => e.id == id).attributes
|
|
|
|
|
id > 0 && articles && mapRef.current?.flyTo({ center: [longitude, latitude] })
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
|