You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using react-leaflet version 4, and installed leaflet-measure, but when i clicked [Create a new measurement] and then clicked on Map my map center has been changed.
import { useEffect } from "react";
import { MapContainer, TileLayer, useMap } from "react-leaflet";
import * as L from "leaflet";
import "leaflet-measure";
import '../../components/LeafletRuler/leaflet-ruler.css'
import "leaflet/dist/leaflet.css";
I am using react-leaflet version 4, and installed leaflet-measure, but when i clicked [Create a new measurement] and then clicked on Map my map center has been changed.
import { useEffect } from "react";
import { MapContainer, TileLayer, useMap } from "react-leaflet";
import * as L from "leaflet";
import "leaflet-measure";
import '../../components/LeafletRuler/leaflet-ruler.css'
import "leaflet/dist/leaflet.css";
const Map = () => {
const position = [51.505, -0.09];
};
export default Map;
The text was updated successfully, but these errors were encountered: