update 7 files

master
mahdi andalib 3 years ago
parent 1fa6f8d9cf
commit 6729cc76a6
  1. 1107
      package-lock.json
  2. 2
      package.json
  3. 9
      public/index.html
  4. 2
      src/App.js
  5. 23
      src/components/TestComponentNew/index.js
  6. 16266
      yarn.lock

1107
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -19,6 +19,7 @@
"axios": "^0.26.0", "axios": "^0.26.0",
"date-fns": "^2.28.0", "date-fns": "^2.28.0",
"leaflet": "^1.7.1", "leaflet": "^1.7.1",
"leaflet-draw": "^1.0.4",
"react": "^18.0.0", "react": "^18.0.0",
"react-apexcharts": "^1.3.9", "react-apexcharts": "^1.3.9",
"react-beautiful-dnd": "^13.1.0", "react-beautiful-dnd": "^13.1.0",
@ -27,6 +28,7 @@
"react-indiana-drag-scroll": "^2.1.0", "react-indiana-drag-scroll": "^2.1.0",
"react-input-range": "^1.3.0", "react-input-range": "^1.3.0",
"react-leaflet": "^3.2.5", "react-leaflet": "^3.2.5",
"react-leaflet-draw": "^0.19.8",
"react-redux": "^7.2.6", "react-redux": "^7.2.6",
"react-scripts": "5.0.0", "react-scripts": "5.0.0",
"react-table": "^7.7.0", "react-table": "^7.7.0",

@ -9,8 +9,13 @@
name="description" name="description"
content="Web site created using create-react-app" content="Web site created using create-react-app"
/> />
<script src="http://leaflet-extras.github.com/leaflet.css/dist/leaflet.css.bundle.min.js"></script> <!-- leafLet reactJs -->
<link
rel="stylesheet"
href="https://unpkg.com/leaflet@1.6.0/dist/leaflet.css"
integrity="sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ=="
crossorigin=""
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" /> <link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!-- <!--
manifest.json provides metadata used when your web app is installed on a manifest.json provides metadata used when your web app is installed on a

@ -179,7 +179,7 @@ function App() {
{/* <Digikala /> */} {/* <Digikala /> */}
{/* <TestComponentNew /> */} <TestComponentNew />
</div> </div>
</Provider> </Provider>
); );

@ -1,14 +1,29 @@
import React from "react"; import React, { useState } from "react";
import "./index.scss"; import "./index.scss";
import { MapContainer, Marker, Popup, TileLayer } from "react-leaflet"; import {
MapContainer,
TileLayer,
Marker,
Popup,
FeatureGroup,
} from "react-leaflet";
import { EditControl } from "leaflet-draw";
// import { EditControl } from "react-leaflet-draw";
const position = [51.505, -0.09]; const position = [51.505, -0.09];
function TestComponentNew() { // و لینک سی دی ان اضافه کردم index.htmlیک نکته خیلی خیلی مهم برای اینکه کار کنه رفتم در فایل
function TestComponentNew({}) {
return ( return (
<MapContainer center={position} zoom={13}> <MapContainer
center={position}
zoom={20}
style={{ width: "100%", height: "100vh" }}
>
<EditControl />
<TileLayer <TileLayer
attribution='&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors' attribution='&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png" url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"

16266
yarn.lock

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save