Adding zoom control

This commit is contained in:
Eric van der Vlist 2022-09-01 22:37:46 +02:00
parent d8c3035bb2
commit 8ec7e7d045
1 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
import react from "react";
import { useState, useEffect } from "react";
import { Map, Marker } from "pigeon-maps"
import { Map, Marker, ZoomControl } from "pigeon-maps"
import { Geolocation } from "@awesome-cordova-plugins/geolocation";
const LiveMap: react.FC = () => {
@ -26,7 +26,8 @@ const LiveMap: react.FC = () => {
setCenter(center);
setZoom(zoom);
}
}>
} animate={true}>
<ZoomControl />
<Marker width={20} anchor={position} />
</Map>
);