Add the ruler to the new map.

https://github.com/dcs-liberation/dcs_liberation/issues/2158
This commit is contained in:
Raffson
2022-06-12 22:15:26 +02:00
committed by GitHub
parent 6557864697
commit 70e5c578ae
7 changed files with 101 additions and 21 deletions

View File

@@ -18,6 +18,7 @@ import { useEffect, useRef } from "react";
import { BasemapLayer } from "react-esri-leaflet";
import { LayersControl, MapContainer, ScaleControl } from "react-leaflet";
import Iadsnetworklayer from "../iadsnetworklayer";
import LeafletRuler from "../ruler/Ruler";
export default function LiberationMap() {
const map = useRef<Map>();
@@ -32,6 +33,7 @@ export default function LiberationMap() {
whenCreated={(mapInstance) => (map.current = mapInstance)}
>
<ScaleControl />
<LeafletRuler />
<LayersControl collapsed={false}>
<LayersControl.BaseLayer name="Imagery Clarity" checked>
<BasemapLayer name="ImageryClarity" />