Compare commits
No commits in common. "fa281bfc8a8f57cbdf2c12dce6222d2c4ff0980d" and "3b1730386bd4288cf97a9a93479cd7943c96ed3a" have entirely different histories.
fa281bfc8a
...
3b1730386b
8 changed files with 1420 additions and 1891 deletions
|
@ -1,6 +0,0 @@
|
||||||
# syntax=docker/dockerfile:experimental
|
|
||||||
|
|
||||||
FROM node:alpine
|
|
||||||
COPY . .
|
|
||||||
CMD npm run start
|
|
||||||
EXPOSE 3000
|
|
|
@ -1,5 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
pnpm install &&
|
|
||||||
pnpm run build &&
|
|
||||||
docker build -t lightning .
|
|
|
@ -7,28 +7,28 @@
|
||||||
},
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^18.19.3",
|
"@types/node": "^18.16.12",
|
||||||
"esbuild": "^0.14.54",
|
"esbuild": "^0.14.54",
|
||||||
"postcss": "^8.4.32",
|
"postcss": "^8.4.23",
|
||||||
"solid-start-node": "^0.2.32",
|
"solid-start-node": "^0.2.26",
|
||||||
"typescript": "^4.9.5",
|
"typescript": "^4.9.5",
|
||||||
"vite": "^4.5.1"
|
"vite": "^4.3.7"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@deck.gl/layers": "^8.9.33",
|
"@deck.gl/layers": "^8.9.15",
|
||||||
"@deck.gl/mapbox": "^8.9.33",
|
"@deck.gl/mapbox": "^8.9.15",
|
||||||
"@deck.gl/mesh-layers": "^8.9.33",
|
"@deck.gl/mesh-layers": "^8.9.15",
|
||||||
"@solidjs/meta": "^0.28.7",
|
"@solidjs/meta": "^0.28.5",
|
||||||
"@solidjs/router": "^0.8.4",
|
"@solidjs/router": "^0.8.2",
|
||||||
"autoprefixer": "^10.4.16",
|
"autoprefixer": "^10.4.14",
|
||||||
"mapbox-gl": "npm:empty-npm-package@^1.0.0",
|
"mapbox-gl": "npm:empty-npm-package@^1.0.0",
|
||||||
"maplibre-gl": "^2.4.0",
|
"maplibre-gl": "^2.4.0",
|
||||||
"solid-headless": "^0.13.1",
|
"solid-headless": "^0.13.1",
|
||||||
"solid-js": "^1.8.7",
|
"solid-js": "^1.7.5",
|
||||||
"solid-map-gl": "^1.10.2",
|
"solid-map-gl": "^1.7.2",
|
||||||
"solid-start": "^0.2.32",
|
"solid-start": "^0.2.26",
|
||||||
"tailwindcss": "^3.3.6",
|
"tailwindcss": "^3.3.2",
|
||||||
"undici": "^5.28.2"
|
"undici": "^5.22.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.8"
|
"node": ">=16.8"
|
||||||
|
|
3247
lightning/pnpm-lock.yaml
generated
3247
lightning/pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load diff
|
@ -14,6 +14,7 @@ const MapIconLayer = unstable_clientOnly(() => import('~/components/map/MapIconL
|
||||||
import 'maplibre-gl/dist/maplibre-gl.css';
|
import 'maplibre-gl/dist/maplibre-gl.css';
|
||||||
import StyleJson from '~/style/style.json';
|
import StyleJson from '~/style/style.json';
|
||||||
|
|
||||||
|
export const [mapIcons, setMapIcons] = createSignal([]);
|
||||||
|
|
||||||
export const [mapRotate, setMapRotate] = createSignal(false);
|
export const [mapRotate, setMapRotate] = createSignal(false);
|
||||||
createEffect(() => console.log('Rotate:', mapRotate()));
|
createEffect(() => console.log('Rotate:', mapRotate()));
|
||||||
|
|
|
@ -15,11 +15,6 @@ export default function MapIconLayer(props: any) {
|
||||||
|
|
||||||
createEffect(() => console.log("Watch me update but not trigger a render!", stations()));
|
createEffect(() => console.log("Watch me update but not trigger a render!", stations()));
|
||||||
|
|
||||||
function deezCompare() {
|
|
||||||
console.log('comparing');
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Show when={stations()}>
|
<Show when={stations()}>
|
||||||
<Layer customLayer={
|
<Layer customLayer={
|
||||||
|
@ -35,8 +30,6 @@ export default function MapIconLayer(props: any) {
|
||||||
getPosition: d => [d.Loc.Coordinates[1], d.Loc.Coordinates[0]],
|
getPosition: d => [d.Loc.Coordinates[1], d.Loc.Coordinates[0]],
|
||||||
getSize: d => 3,
|
getSize: d => 3,
|
||||||
getColor: d => [d.Dist * 100, 140 - (d.Dist * 50), 0],
|
getColor: d => [d.Dist * 100, 140 - (d.Dist * 50), 0],
|
||||||
dataComparator: deezCompare,
|
|
||||||
_dataDiff: () => console.log('datadiff'),
|
|
||||||
parameters: {
|
parameters: {
|
||||||
depthTest: false,
|
depthTest: false,
|
||||||
},
|
},
|
||||||
|
|
|
@ -29,8 +29,8 @@ fi
|
||||||
cd ../dist
|
cd ../dist
|
||||||
if [ ! -f martin ]; then
|
if [ ! -f martin ]; then
|
||||||
echo Downloading and extracting martin...
|
echo Downloading and extracting martin...
|
||||||
wget -c https://github.com/maplibre/martin/releases/latest/download/martin-x86_64-unknown-linux-gnu.tar.gz &&
|
wget -c https://github.com/maplibre/martin/releases/latest/download/martin-Linux-x86_64.tar.gz &&
|
||||||
tar -xzvf martin-x86_64-unknown-linux-gnu.tar.gz
|
tar -xzvf martin-Linux-x86_64.tar.gz
|
||||||
else
|
else
|
||||||
echo martin already exists
|
echo martin already exists
|
||||||
fi
|
fi
|
||||||
|
|
11
readme.md
11
readme.md
|
@ -1,11 +0,0 @@
|
||||||
# Maps
|
|
||||||
|
|
||||||
[lightning.doordesk.net](https://lightning.doordesk.net)
|
|
||||||
|
|
||||||
Some data vis about EV charging stations using
|
|
||||||
[EVChargerFinder](https://github.com/kevin-fwu/EVChargerFinder)
|
|
||||||
made by my friend [Kevin](https://github.com/kevin-fwu).
|
|
||||||
|
|
||||||
|
|
||||||
It mainly leans on the [MapLibre Project](https://maplibre.org)
|
|
||||||
and [DeckGL](https://deck.gl)
|
|
Loading…
Add table
Reference in a new issue