Skip to content

Commit

Permalink
Update interactievekaart.html
Browse files Browse the repository at this point in the history
  • Loading branch information
PrettyHeatToast committed Mar 2, 2024
1 parent 06fefaa commit 454d90e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions interactievekaart.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,20 @@
marker.addEventListener('markerFound', function () {
markerVisible[marker.id] = true;
console.log(markerVisible);

if (markerVisible[gemeentesMap])
document.querySelector("#plane1").setAttribute("scale", "2 2 2");
});

marker.addEventListener('markerLost', function () {
markerVisible[marker.id] = false;
console.log(markerVisible);

if (markerVisible[gemeentesMap])
document.querySelector("#plane1").setAttribute("scale", "0 0 0");
});

if (markerVisible[gemeentesMap])
document.querySelector("#plane1").setAttribute("scale", "2 2 2");

}
});
</script>
Expand Down

0 comments on commit 454d90e

Please sign in to comment.