diff --git a/src/App.js b/src/App.js index 2e6ff1b..4843b65 100644 --- a/src/App.js +++ b/src/App.js @@ -138,7 +138,7 @@ function App() { {/* */} {/* */} {/* */} - + {/* */} {/* *************************************************** mini components *************************************************** */} @@ -171,7 +171,7 @@ function App() { {/* */} {/* */} {/* */} - {/* */} + {/*
diff --git a/src/components/DateRangePicker/index.scss b/src/components/DateRangePicker/index.scss index a5932e2..702c77e 100644 --- a/src/components/DateRangePicker/index.scss +++ b/src/components/DateRangePicker/index.scss @@ -56,7 +56,7 @@ .rmdp-week-day { color: #3b98f3; - font-size: 9px; + font-size: 9px !important; } .rmdp-shadow { diff --git a/src/components/LeafletMap/index.js b/src/components/LeafletMap/index.js index 7a2a604..5a0f97b 100644 --- a/src/components/LeafletMap/index.js +++ b/src/components/LeafletMap/index.js @@ -6,6 +6,7 @@ import { FeatureGroup, Rectangle, useMap, + Marker, LayerGroup, ZoomControl, ScaleControl, @@ -21,6 +22,8 @@ import "./index.scss"; import grid from "../../assets/images/grid.png"; +// import placeholder from "../placeholder.png"; + import * as L from "leaflet"; L.drawLocal = { @@ -177,11 +180,6 @@ const LeafletMap = () => { - - - ویرایش لایه ها - - ); diff --git a/src/components/LeafletMap/index.scss b/src/components/LeafletMap/index.scss index 89e0beb..adf92c7 100644 --- a/src/components/LeafletMap/index.scss +++ b/src/components/LeafletMap/index.scss @@ -1,12 +1,46 @@ +.leaflet-draw-toolbar a, +span, +title, +p, +li { + font-family: "iransans-medium" !important; +} + +.leaflet-touch .leaflet-draw-actions a { + font-family: "iransans-medium" !important; +} + .leaflet-container { width: 100%; height: 100vh; } + .leaflet-control-scale-line:not(:first-child) { display: none !important; } + .leaflet-tile { border: 1px solid gray; box-sizing: content-box; } + +.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-polygon { + display: none !important; +} + +.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-circle { + display: none !important; +} + +.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-circlemarker { + display: none !important; +} + +.leaflet-right .leaflet-draw-actions li:first-child a { + border-radius: 0px !important; +} + +.leaflet-right .leaflet-draw-actions li:last-child a { + border-radius: 4px 0 0 4px; +} diff --git a/src/components/LeafletMap/placeholder.png b/src/components/LeafletMap/placeholder.png new file mode 100644 index 0000000..99b5c6e Binary files /dev/null and b/src/components/LeafletMap/placeholder.png differ