Don't use useGeographic anymore since it doesn't work with clusters.

This commit is contained in:
vdv committed 2023-01-20 21:11:18 +01:00
1 parent 6e796f88c7
commit 9ade878deb
6 files changed
+69 -51

No files matched your search

+2 -1
View File
@@ -8,6 +8,7 @@ import {
createCachedSignal,
destroyCachedSignal,
} from '../../workers/cached-signals';
import { fromLonLat } from 'ol/proj';
interface Props {
wptId: string;
@@ -61,7 +62,7 @@ export const Wpt: Component<Props> = ({
type: 'Feature',
geometry: {
type: 'Point',
coordinates: [wpt()?.$.lon, wpt()?.$.lat],
coordinates: fromLonLat([wpt()?.$.lon, wpt()?.$.lat]),
},
properties: {
type: 'wpt',