Don't use useGeographic anymore since it doesn't work with clusters.
This commit is contained in:
1 parent
6e796f88c7
commit
9ade878deb
6 files changed
+69
-51
No files matched your search
@@ -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',
|
||||
|
||||
Reference in new issue
Block a user