|
|
|
|
@ -1,6 +1,5 @@
|
|
|
|
|
import { Paper, Flex, ScrollArea, Autocomplete } from '@mantine/core';
|
|
|
|
|
import { ArticleCardVertical } from './ArticleCard';
|
|
|
|
|
import articleCard from './assets/card.json';
|
|
|
|
|
import Map, {Source, Layer} from 'react-map-gl/maplibre';
|
|
|
|
|
import { useState, useEffect, useRef } from 'react';
|
|
|
|
|
import Fuse from 'fuse.js'
|
|
|
|
|
@ -29,19 +28,6 @@ export function KartaPage() {
|
|
|
|
|
}, [])
|
|
|
|
|
|
|
|
|
|
const fuseOptions = {
|
|
|
|
|
// isCaseSensitive: false,
|
|
|
|
|
// includeScore: false,
|
|
|
|
|
// shouldSort: true,
|
|
|
|
|
// includeMatches: false,
|
|
|
|
|
// findAllMatches: false,
|
|
|
|
|
// minMatchCharLength: 1,
|
|
|
|
|
// location: 0,
|
|
|
|
|
// threshold: 0.6,
|
|
|
|
|
// distance: 100,
|
|
|
|
|
// useExtendedSearch: false,
|
|
|
|
|
// ignoreLocation: false,
|
|
|
|
|
// ignoreFieldNorm: false,
|
|
|
|
|
// fieldNormWeight: 1,
|
|
|
|
|
keys: [
|
|
|
|
|
"attributes.tags.value"
|
|
|
|
|
]
|
|
|
|
|
@ -135,10 +121,6 @@ export function KartaPage() {
|
|
|
|
|
"title": article.attributes.title,
|
|
|
|
|
"address": article.attributes.address,
|
|
|
|
|
"coordinates": article.attributes.coordinates,
|
|
|
|
|
// "author": {
|
|
|
|
|
// "name": "Elsa Brown",
|
|
|
|
|
// "avatar": "https://images.unsplash.com/photo-1628890923662-2cb23c2e0cfe?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=200&q=80"
|
|
|
|
|
// },
|
|
|
|
|
"selected": selected,
|
|
|
|
|
"handleAddressClick": handleAddressClick
|
|
|
|
|
}
|
|
|
|
|
|