Adding zoom control

This commit is contained in:
vdv committed 2022-09-01 22:37:46 +02:00
1 parent d8c3035bb2
commit 8ec7e7d045
1 file changed
+3 -2
+3 -2
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>
);