Skip to content

Commit

Permalink
hide copyright upon street-geo remove or mapbox load
Browse files Browse the repository at this point in the history
  • Loading branch information
kfarr committed Jun 11, 2024
1 parent 893ae69 commit 63598d6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/street-geo.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ AFRAME.registerComponent('street-geo', {
this[mapType + 'Update'].bind(this);
}
},
remove: function () {
document.getElementById('map-data-attribution').style.visibility = 'hidden';
},
update: function (oldData) {
const data = this.data;

Expand Down Expand Up @@ -85,6 +88,7 @@ AFRAME.registerComponent('street-geo', {
mapbox2dElement.setAttribute('data-ignore-raycaster', '');
el.appendChild(mapbox2dElement);
this['mapbox2d'] = mapbox2dElement;
document.getElementById('map-data-attribution').style.visibility = 'hidden';
},
google3dCreate: function () {
const data = this.data;
Expand Down

0 comments on commit 63598d6

Please sign in to comment.