CMU-CREATE-Lab / data-visualization-tools

EarthTime, and various data visualization libraries
Other
14 stars 5 forks source link

Mapbox layers move out of alignment with other layers when canvas size changes #227

Closed jjkohler closed 3 years ago

jjkohler commented 3 years ago

image When Mapbox data layers are shown in ET they show up correctly positioned and aligned to the base map.

As soon as the canvas size changes when the share panel is activated, all Mapbox items become misaligned - bouncing back to position when the share panel is closed. image

Behavior can be seen here: https://jjkohler.earthtime.org/explore#v=34.94139,-66.63709,2.781,latLng&t=0.88&ps=50&l=bdrk_subtle,mb_cities&bt=19840101&et=20191231&startDwell=0&endDwell=0

jjkohler commented 3 years ago

Interesting to note, when this issue takes place it also seems to "fix" the plaid issue seen in #221 image

image

jjkohler commented 3 years ago

Note: normal drag resizing of the browser window does not seem to produce the same result. In that case, layers stay in alignment.