You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1 lines
25 KiB

{"ast":null,"code":"var _jsxFileName = \"/Users/mahdi/Documents/work/programming/barnameNegar/arbaeenWebApp/src/components/LeafletMap/index.js\",\n _s = $RefreshSig$(),\n _s2 = $RefreshSig$();\n\n// it has style inside index.scss ---> // Start LeafletMap && end LeafletMap\nimport React, { useState, useRef, useMemo } from \"react\";\nimport { MapContainer, TileLayer, FeatureGroup, Rectangle, useMap, Popup, Marker, LayerGroup, ZoomControl, ScaleControl } from \"react-leaflet\";\nimport \"leaflet/dist/leaflet.css\";\nimport \"leaflet-draw/dist/leaflet.draw.css\";\nimport { EditControl } from \"react-leaflet-draw\";\nimport \"leaflet-draw\";\nimport * as L from \"leaflet\";\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nconst bedNumb = \"تخت شماره 33\";\nconst pinMB = L.icon({\n iconUrl: \"images/LeafletMapplaceholder.png\",\n iconSize: [24, 41],\n iconAnchor: [0, 44],\n popupAnchor: [12, -40],\n shadowUrl: null,\n shadowSize: null,\n shadowAnchor: null\n}); // const MyCustomMarker = L.icon({\n// iconUrl: placeholder,\n// iconSize: [24, 41],\n// iconAnchor: [0, 44],\n// popupAnchor: [12, -40],\n// shadowUrl: null,\n// shadowSize: null,\n// shadowAnchor: null,\n// });\n\nL.drawLocal = {\n draw: {\n toolbar: {\n actions: {\n title: \"لغو کردن رسم\",\n text: \"لغو\"\n },\n finish: {\n title: \"پایان رسم\",\n text: \"پایان رسم\"\n },\n undo: {\n title: \"پاک کردن آخرین نقطه رسم شده\",\n text: \"پاک کردن آخرین نقطه رسم شده\"\n },\n buttons: {\n polyline: \"موکب مورد نظر خود را رسم نمایید\",\n polygon: \"رسم پولیگان\",\n rectangle: \"رسم جای خواب\",\n circle: \"رسم دایره\",\n marker: \"رسم مارکر\",\n circlemarker: \"رسم دایره مارکر\"\n }\n },\n handlers: {\n circle: {\n tooltip: {\n start: \"کلیک کنید و سپس درگ کنید تا یک دایره بکشید.\"\n },\n radius: \"ردیوس\"\n },\n circlemarker: {\n tooltip: {\n start: \"با کلیک بر روی نقشه یک مارکر رسم کنید.\"\n }\n },\n marker: {\n icon: \"images/LeafletMapplaceholder.png\",\n tooltip: {\n start: \"با کلیک بر روی نقشه یک مارکر رسم کنید.\"\n }\n },\n polygon: {\n tooltip: {\n start: \"یک شکل رسم کنید.\",\n cont: \"ادامه رسم شکل.\",\n end: \"برای پایان رسم بر روی اولین نقظه کلیک کنید.\"\n }\n },\n polyline: {\n error: \"<strong>Error:</strong> shape edges cannot cross!\",\n tooltip: {\n start: \"با کلیک کردن یک خط رسم کنید.\",\n cont: \"با کلیک به رسم خود ادامه دهید.\",\n end: \"برای پایان رسم بر روی آخرین نقظ رسم شده کلیک کنید.\"\n }\n },\n rectangle: {\n tooltip: {\n start: \"با کلیک و درگ کردن یک جای خواب رسم کنید.\"\n }\n },\n simpleshape: {\n tooltip: {\n end: \"ماوس را رها کنید تا رسم تمام شود.\"\n }\n }\n }\n },\n edit: {\n toolbar: {\n actions: {\n save: {\n title: \"ذخیره تنظیمات\",\n text: \"ذخیره\"\n },\n cancel: {\n title: \"لغو کردن، ویرایش تمام تغییرات نادیده گرفته خواهند شد\",\n text: \"لغو\"\n },\n clearAll: {\n title: \"پاک کردن تمام لایه ها\",\n text: \"پاک کردن لایه ها\"\n }\n },\n buttons: {\n edit: \"ویرایش لایه ها\",\n editDisabled: \"لایه ای برای ویرایش وجود ندارد\",\n remove: \"پاک کردن لایه ها\",\n removeDisabled: \"لایه ای برای پاک کردن وجود ندارد\"\n }\n },\n handlers: {\n edit: {\n tooltip: {\n text: \"Drag handles or markers to edit features.\",\n subtext: \"با کلیک بر روی لغو تغییرات اعمال نخواهند شد.\"\n }\n },\n remove: {\n tooltip: {\n text: \"Click on a feature to remove.\"\n }\n }\n }\n }\n};\n\nconst icon = (val, zoom) => L.divIcon({\n className: \"my-div-icon\",\n html: `<div \n style = 'transform: scale(${Math.pow(2, zoom - 23)})'\n class='origin-top-left w-20 h-40 bg-white rounded text-center flex flex-col p-2 justify-between transition-all delay-200'>\n <p class='h-4 rounded bg-gray-300'> </p>\n <p>${val || 0}</p>\n </div>`\n});\n\nfunction MyComponent(_ref) {\n _s();\n\n let {\n setZoom\n } = _ref;\n const map = useMap();\n return null;\n}\n\n_s(MyComponent, \"cX187cvZ2hODbkaiLn05gMk1sCM=\", false, function () {\n return [useMap];\n});\n\n_c = MyComponent;\n\nconst LeafletMap = () => {\n _s2();\n\n // const map =\n const [zoom, setZoom] = useState(22);\n const outerBounds = [[50.505, -29.09], [52.505, 29.09]];\n const leafEl = useRef(null);\n const mapRef = useRef(null);\n\n const onCreated = () => {\n console.log({\n next,\n add\n });\n add(Math.floor(Math.random() * 10)); // const drawnItems = leafEl.current._layers;\n // console.log({ drawnItems });\n };\n\n const [next, add] = useState(1);\n const location = [38.9072, -77.0369];\n console.log({\n mapRef\n });\n\n if (mapRef.current) {\n console.log(mapRef.current);\n }\n\n return /*#__PURE__*/_jsxDEV(\"div\", {\n style: {\n direction: \"ltr\"\n },\n children: /*#__PURE__*/_jsxDEV(MapContainer, {\n whenCreated: mapInstance => {\n mapInstance.on(\"zoomend\", function () {\n console.log(mapRef.current);\n setZoom(mapRef.current._zoom);\n });\n mapRef.current = mapInstance;\n },\n center: [49.505, -2.09],\n zoom: zoom,\n maxZoom: 24,\n minZoom: 18,\n maxNativeZoom: 22,\n style: {\n height: \"100vh\"\n },\n zoomControl: false,\n bounds: outerBounds,\n children: [/*#__PURE__*/_jsxDEV(TileLayer, {\n attribution: \"\\xA9 <a href=\\\"http://osm.org/copyright\\\">OpenStreetMap</a> contributors\",\n url: \"https://{s}.tile.thunderforest.com/outdoors/{z}/{x}/{y}.png?apikey={apikey}\",\n apikey: \"db5ae1f5778a448ca662554581f283c5\",\n maxZoom: 24,\n maxNativeZoom: 22,\n opacity: 0.8\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 216,\n columnNumber: 9\n }, this), /*#__PURE__*/_jsxDEV(TileLayer, {\n url: \"images/grid.png\",\n apikey: \"db5ae1f5778a448ca662554581f283c5\",\n maxZoom: 24,\n maxNativeZoom: 24,\n opacity: 0.5\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 224,\n columnNumber: 9\n }, this), /*#__PURE__*/_jsxDEV(Marker, {\n icon: icon(50, zoom),\n position: [49.505, -2.09],\n children: /*#__PURE__*/_jsxDEV(Popup, {\n children: bedNumb\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 233,\n columnNumber: 11\n }, this)\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 231,\n columnNumber: 9\n }, this), /*#__PURE__*/_jsxDEV(FeatureGroup, {\n ref: leafEl,\n children: /*#__PURE__*/_jsxDEV(EditControl, {\n draw: {\n polyline: {\n shapeOptions: {\n color: \"#f357a1\",\n weight: 1\n }\n },\n polygon: {\n allowIntersection: false,\n // Restricts shapes to simple polygons\n drawError: {\n color: \"#e1e100\",\n // Color the shape will turn when intersects\n message: \"<strong>Oh snap!<strong> you can't draw that!\" // Message that will show when intersect\n\n },\n shapeOptions: {\n color: \"#bada55\"\n }\n },\n circle: false,\n // Turns off this drawing tool\n rectangle: {\n shapeOptions: {\n clickable: false\n }\n },\n marker: {\n icon: icon(next, zoom)\n }\n },\n position: \"topright\",\n count: next,\n onCreated: e => {\n console.log({\n next,\n e\n });\n onCreated(next);\n },\n allowIntersection: false\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 236,\n columnNumber: 11\n }, this)\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 235,\n columnNumber: 9\n }, this), /*#__PURE__*/_jsxDEV(LayerGroup, {}, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 273,\n columnNumber: 9\n }, this), /*#__PURE__*/_jsxDEV(ScaleControl, {\n position: \"topleft\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 274,\n columnNumber: 9\n }, this), /*#__PURE__*/_jsxDEV(ZoomControl, {\n position: \"topleft\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 275,\n columnNumber: 9\n }, this)]\n }, void 0, true, {\n fileName: _jsxFileName,\n lineNumber: 198,\n columnNumber: 7\n }, this)\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 197,\n columnNumber: 5\n }, this);\n};\n\n_s2(LeafletMap, \"7uRv2Jzz6xIjgQx6GjFUEg2wnP4=\");\n\n_c2 = LeafletMap;\nexport default LeafletMap;\n\nvar _c, _c2;\n\n$RefreshReg$(_c, \"MyComponent\");\n$RefreshReg$(_c2, \"LeafletMap\");","map":{"version":3,"names":["React","useState","useRef","useMemo","MapContainer","TileLayer","FeatureGroup","Rectangle","useMap","Popup","Marker","LayerGroup","ZoomControl","ScaleControl","EditControl","L","bedNumb","pinMB","icon","iconUrl","iconSize","iconAnchor","popupAnchor","shadowUrl","shadowSize","shadowAnchor","drawLocal","draw","toolbar","actions","title","text","finish","undo","buttons","polyline","polygon","rectangle","circle","marker","circlemarker","handlers","tooltip","start","radius","cont","end","error","simpleshape","edit","save","cancel","clearAll","editDisabled","remove","removeDisabled","subtext","val","zoom","divIcon","className","html","Math","pow","MyComponent","setZoom","map","LeafletMap","outerBounds","leafEl","mapRef","onCreated","console","log","next","add","floor","random","location","current","direction","mapInstance","on","_zoom","height","shapeOptions","color","weight","allowIntersection","drawError","message","clickable","e"],"sources":["/Users/mahdi/Documents/work/programming/barnameNegar/arbaeenWebApp/src/components/LeafletMap/index.js"],"sourcesContent":["// it has style inside index.scss ---> // Start LeafletMap && end LeafletMap\n\nimport React, { useState, useRef, useMemo } from \"react\";\n\nimport {\n MapContainer,\n TileLayer,\n FeatureGroup,\n Rectangle,\n useMap,\n Popup,\n Marker,\n LayerGroup,\n ZoomControl,\n ScaleControl,\n} from \"react-leaflet\";\n\nimport \"leaflet/dist/leaflet.css\";\nimport \"leaflet-draw/dist/leaflet.draw.css\";\n\nimport { EditControl } from \"react-leaflet-draw\";\n\nimport \"leaflet-draw\";\n\nimport * as L from \"leaflet\";\n\nconst bedNumb = \"تخت شماره 33\";\n\nconst pinMB = L.icon({\n iconUrl: \"images/LeafletMapplaceholder.png\",\n iconSize: [24, 41],\n iconAnchor: [0, 44],\n popupAnchor: [12, -40],\n shadowUrl: null,\n shadowSize: null,\n shadowAnchor: null,\n});\n\n// const MyCustomMarker = L.icon({\n// iconUrl: placeholder,\n// iconSize: [24, 41],\n// iconAnchor: [0, 44],\n// popupAnchor: [12, -40],\n// shadowUrl: null,\n// shadowSize: null,\n// shadowAnchor: null,\n// });\n\nL.drawLocal = {\n draw: {\n toolbar: {\n actions: {\n title: \"لغو کردن رسم\",\n text: \"لغو\",\n },\n finish: {\n title: \"پایان رسم\",\n text: \"پایان رسم\",\n },\n undo: {\n title: \"پاک کردن آخرین نقطه رسم شده\",\n text: \"پاک کردن آخرین نقطه رسم شده\",\n },\n buttons: {\n polyline: \"موکب مورد نظر خود را رسم نمایید\",\n polygon: \"رسم پولیگان\",\n rectangle: \"رسم جای خواب\",\n circle: \"رسم دایره\",\n marker: \"رسم مارکر\",\n circlemarker: \"رسم دایره مارکر\",\n },\n },\n handlers: {\n circle: {\n tooltip: {\n start: \"کلیک کنید و سپس درگ کنید تا یک دایره بکشید.\",\n },\n radius: \"ردیوس\",\n },\n circlemarker: {\n tooltip: {\n start: \"با کلیک بر روی نقشه یک مارکر رسم کنید.\",\n },\n },\n marker: {\n icon: \"images/LeafletMapplaceholder.png\",\n tooltip: {\n start: \"با کلیک بر روی نقشه یک مارکر رسم کنید.\",\n },\n },\n polygon: {\n tooltip: {\n start: \"یک شکل رسم کنید.\",\n cont: \"ادامه رسم شکل.\",\n end: \"برای پایان رسم بر روی اولین نقظه کلیک کنید.\",\n },\n },\n polyline: {\n error: \"<strong>Error:</strong> shape edges cannot cross!\",\n tooltip: {\n start: \"با کلیک کردن یک خط رسم کنید.\",\n cont: \"با کلیک به رسم خود ادامه دهید.\",\n end: \"برای پایان رسم بر روی آخرین نقظ رسم شده کلیک کنید.\",\n },\n },\n rectangle: {\n tooltip: {\n start: \"با کلیک و درگ کردن یک جای خواب رسم کنید.\",\n },\n },\n simpleshape: {\n tooltip: {\n end: \"ماوس را رها کنید تا رسم تمام شود.\",\n },\n },\n },\n },\n edit: {\n toolbar: {\n actions: {\n save: {\n title: \"ذخیره تنظیمات\",\n text: \"ذخیره\",\n },\n cancel: {\n title: \"لغو کردن، ویرایش تمام تغییرات نادیده گرفته خواهند شد\",\n text: \"لغو\",\n },\n clearAll: {\n title: \"پاک کردن تمام لایه ها\",\n text: \"پاک کردن لایه ها\",\n },\n },\n buttons: {\n edit: \"ویرایش لایه ها\",\n editDisabled: \"لایه ای برای ویرایش وجود ندارد\",\n remove: \"پاک کردن لایه ها\",\n removeDisabled: \"لایه ای برای پاک کردن وجود ندارد\",\n },\n },\n handlers: {\n edit: {\n tooltip: {\n text: \"Drag handles or markers to edit features.\",\n subtext: \"با کلیک بر روی لغو تغییرات اعمال نخواهند شد.\",\n },\n },\n remove: {\n tooltip: {\n text: \"Click on a feature to remove.\",\n },\n },\n },\n },\n};\n\nconst icon = (val, zoom) =>\n L.divIcon({\n className: \"my-div-icon\",\n html: `<div \n style = 'transform: scale(${Math.pow(2, zoom - 23)})'\n class='origin-top-left w-20 h-40 bg-white rounded text-center flex flex-col p-2 justify-between transition-all delay-200'>\n <p class='h-4 rounded bg-gray-300'> </p>\n <p>${val || 0}</p>\n </div>`,\n });\n\nfunction MyComponent({ setZoom }) {\n const map = useMap();\n\n return null;\n}\n\nconst LeafletMap = () => {\n // const map =\n const [zoom, setZoom] = useState(22);\n const outerBounds = [\n [50.505, -29.09],\n [52.505, 29.09],\n ];\n\n const leafEl = useRef(null);\n const mapRef = useRef(null);\n const onCreated = () => {\n console.log({ next, add });\n add(Math.floor(Math.random() * 10));\n // const drawnItems = leafEl.current._layers;\n // console.log({ drawnItems });\n };\n const [next, add] = useState(1);\n const location = [38.9072, -77.0369];\n console.log({ mapRef });\n if (mapRef.current) {\n console.log(mapRef.current);\n }\n return (\n <div style={{ direction: \"ltr\" }}>\n <MapContainer\n whenCreated={(mapInstance) => {\n mapInstance.on(\"zoomend\", function () {\n console.log(mapRef.current);\n setZoom(mapRef.current._zoom);\n });\n mapRef.current = mapInstance;\n }}\n center={[49.505, -2.09]}\n zoom={zoom}\n maxZoom={24}\n minZoom={18}\n maxNativeZoom={22}\n style={{ height: \"100vh\" }}\n zoomControl={false}\n bounds={outerBounds}\n >\n {/* <MyComponent setZoom={setZoom} /> */}\n <TileLayer\n attribution='&copy; <a href=\"http://osm.org/copyright\">OpenStreetMap</a> contributors'\n url=\"https://{s}.tile.thunderforest.com/outdoors/{z}/{x}/{y}.png?apikey={apikey}\"\n apikey=\"db5ae1f5778a448ca662554581f283c5\"\n maxZoom={24}\n maxNativeZoom={22}\n opacity={0.8}\n />\n <TileLayer\n url=\"images/grid.png\"\n apikey=\"db5ae1f5778a448ca662554581f283c5\"\n maxZoom={24}\n maxNativeZoom={24}\n opacity={0.5}\n />\n <Marker icon={icon(50, zoom)} position={[49.505, -2.09]}>\n {/* <Marker position={[49.505, -2.09]} icon={MyCustomMarker2()}> */}\n <Popup>{bedNumb}</Popup>\n </Marker>\n <FeatureGroup ref={leafEl}>\n <EditControl\n draw={{\n polyline: {\n shapeOptions: {\n color: \"#f357a1\",\n weight: 1,\n },\n },\n polygon: {\n allowIntersection: false, // Restricts shapes to simple polygons\n drawError: {\n color: \"#e1e100\", // Color the shape will turn when intersects\n message: \"<strong>Oh snap!<strong> you can't draw that!\", // Message that will show when intersect\n },\n shapeOptions: {\n color: \"#bada55\",\n },\n },\n circle: false, // Turns off this drawing tool\n rectangle: {\n shapeOptions: {\n clickable: false,\n },\n },\n marker: {\n icon: icon(next, zoom),\n },\n }}\n position=\"topright\"\n count={next}\n onCreated={(e) => {\n console.log({ next, e });\n onCreated(next);\n }}\n allowIntersection={false}\n />\n </FeatureGroup>\n <LayerGroup></LayerGroup>\n <ScaleControl position=\"topleft\" />\n <ZoomControl position=\"topleft\" />\n </MapContainer>\n </div>\n );\n};\n\nexport default LeafletMap;\n"],"mappings":";;;;AAAA;AAEA,OAAOA,KAAP,IAAgBC,QAAhB,EAA0BC,MAA1B,EAAkCC,OAAlC,QAAiD,OAAjD;AAEA,SACEC,YADF,EAEEC,SAFF,EAGEC,YAHF,EAIEC,SAJF,EAKEC,MALF,EAMEC,KANF,EAOEC,MAPF,EAQEC,UARF,EASEC,WATF,EAUEC,YAVF,QAWO,eAXP;AAaA,OAAO,0BAAP;AACA,OAAO,oCAAP;AAEA,SAASC,WAAT,QAA4B,oBAA5B;AAEA,OAAO,cAAP;AAEA,OAAO,KAAKC,CAAZ,MAAmB,SAAnB;;AAEA,MAAMC,OAAO,GAAG,cAAhB;AAEA,MAAMC,KAAK,GAAGF,CAAC,CAACG,IAAF,CAAO;EACnBC,OAAO,EAAE,kCADU;EAEnBC,QAAQ,EAAE,CAAC,EAAD,EAAK,EAAL,CAFS;EAGnBC,UAAU,EAAE,CAAC,CAAD,EAAI,EAAJ,CAHO;EAInBC,WAAW,EAAE,CAAC,EAAD,EAAK,CAAC,EAAN,CAJM;EAKnBC,SAAS,EAAE,IALQ;EAMnBC,UAAU,EAAE,IANO;EAOnBC,YAAY,EAAE;AAPK,CAAP,CAAd,C,CAUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEAV,CAAC,CAACW,SAAF,GAAc;EACZC,IAAI,EAAE;IACJC,OAAO,EAAE;MACPC,OAAO,EAAE;QACPC,KAAK,EAAE,cADA;QAEPC,IAAI,EAAE;MAFC,CADF;MAKPC,MAAM,EAAE;QACNF,KAAK,EAAE,WADD;QAENC,IAAI,EAAE;MAFA,CALD;MASPE,IAAI,EAAE;QACJH,KAAK,EAAE,6BADH;QAEJC,IAAI,EAAE;MAFF,CATC;MAaPG,OAAO,EAAE;QACPC,QAAQ,EAAE,iCADH;QAEPC,OAAO,EAAE,aAFF;QAGPC,SAAS,EAAE,cA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