diff --git a/package-lock.json b/package-lock.json index 8ed1d87..405c9b3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,6 @@ "name": "lorex", "version": "0.0.1", "dependencies": { - "@emotion/styled": "^11.13.0", "@emotion/react": "^11.13.0", "@emotion/styled": "^11.11.5", "@mui/icons-material": "^5.16.5", @@ -871,11 +870,6 @@ "integrity": "sha512-30FAj7/EoJ5mwVPOWhAyCX+FPfMDrVecJAM+Iw9NRoSl4BBAQeqj4cApHHUXOVvIPgLVDsCFoz/hGD+5QQD1GQ==", "license": "MIT" }, - "node_modules/@emotion/memoize": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.8.1.tgz", - "integrity": "sha512-W2P2c/VRW1/1tLox0mVUalvnWXxavmv/Oum2aPsRcoDJuob75FC3Y8FbpfLwUegRcxINtGUMPq0tFCvYNTBXNA==" - }, "node_modules/@emotion/react": { "version": "11.13.0", "resolved": "https://registry.npmjs.org/@emotion/react/-/react-11.13.0.tgz", diff --git a/package.json b/package.json index d04e595..d2e8aba 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,6 @@ "webpack-cli": "^5.1.4" }, "dependencies": { - "@emotion/styled": "^11.13.0", "@emotion/react": "^11.13.0", "@emotion/styled": "^11.11.5", "@mui/icons-material": "^5.16.5", diff --git a/src/client/components/Map.tsx b/src/client/components/Map.tsx index bc8aeb3..466275a 100644 --- a/src/client/components/Map.tsx +++ b/src/client/components/Map.tsx @@ -59,10 +59,7 @@ const MultiColorPolyline = ({ cleanEntries }: { cleanEntries: Models.IEntry[] }) const polylineArray: LatLngExpression[] = cleanEntries.map((entry) => ([entry.lat, entry.lon])); - L.polycolor(polylineArray, { - colors: colorsArray, - weight: 5 - }).addTo(map); + } }, [map]); diff --git a/src/client/tsconfig.json b/src/client/tsconfig.json index 953d117..7777c58 100644 --- a/src/client/tsconfig.json +++ b/src/client/tsconfig.json @@ -6,5 +6,5 @@ "jsx": "react", "esModuleInterop": true }, - "include": ["**/*.tsx", "**/*.ts", "types.d.ts", "../../types.d.ts", "types_polyline.d.ts"] + "include": ["**/*.tsx", "**/*.ts", "types.d.ts", "../../types.d.ts"] } \ No newline at end of file diff --git a/src/client/types_polyline.d.ts b/src/client/types_polyline.d.ts deleted file mode 100644 index f955d35..0000000 --- a/src/client/types_polyline.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Polyline plugin for native Leaflet -import * as L from 'leaflet'; - -declare module 'leaflet' { - namespace Polycolor { - interface Options { - colors: Array; - weight?: number; - } - } - - // Declare the actual polycolor function under the L namespace - function polycolor(latlngs: L.LatLngExpression[], options: Polycolor.Options): L.Polyline; -}