Skip to content

Commit

Permalink
[Revert] #109 remove polyColor Plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Type-Style committed Aug 23, 2024
1 parent 842d0c8 commit 924efa7
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 26 deletions.
6 changes: 0 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 1 addition & 4 deletions src/client/components/Map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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]);

Expand Down
2 changes: 1 addition & 1 deletion src/client/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}
14 changes: 0 additions & 14 deletions src/client/types_polyline.d.ts

This file was deleted.

0 comments on commit 924efa7

Please sign in to comment.