Bring back navigation buttons.

This commit is contained in:
vdv committed 2022-11-26 12:33:26 +01:00
1 parent 2c79c74376
commit 02f02984e5
5 files changed
+66

No files matched your search

+17
View File
@@ -20,6 +20,7 @@ import { Point } from 'ol/geom';
import { Circle, Fill, Stroke, Style, Icon } from 'ol/style';
import GetLocation, { getCurrentLocation } from '../get-location';
import ShowLocationIcon from '../get-location/ShowLocationIcon.svg';
import { Back, Forward } from '../back-forward';
const [getState, setState] = createSignal({
lon: 0,
@@ -144,6 +145,22 @@ const Map: Component = () => {
</div>
),
}),
new Control({
// @ts-ignore
element: (
<div>
<Back />
</div>
),
}),
new Control({
// @ts-ignore
element: (
<div>
<Forward />
</div>
),
}),
]),
});
olMap.on(['moveend'], changeListener);