testing logs

This commit is contained in:
Adam 2023-05-17 21:22:10 -04:00
parent f63787fd03
commit ad38b676d6

View file

@ -15,6 +15,11 @@ 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={
@ -30,6 +35,8 @@ 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,
}, },