Skip to content

Commit

Permalink
fix(3D:html): ajoute un ID au canvas itowns
Browse files Browse the repository at this point in the history
L'id au canvas itowns permet de le récupérer pour manipulation/suppression plus facilement et avec plus de robustesse, notamment pour le switch côté portail
  • Loading branch information
elias75015 committed Aug 18, 2020
1 parent acfd04e commit 90b9dfd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Itowns/ItMapBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,10 @@ ItMap.prototype._initMap = function () {
self.libMap.forgetByKey(key);

// we show the div when globe is loaded
// we had an id to the itowns canvas
window.setTimeout(function () {
self.div.style.visibility = "";
self.libMap.getGlobeView().domElement.firstElementChild.id = "itownscanvas";
}, 1);

// evenements pour faire la distinction entre le click et le drag
Expand Down

0 comments on commit 90b9dfd

Please sign in to comment.