MAPC / datacommon

MAPC's Data Portal
https://datacommon.mapc.org/
3 stars 0 forks source link

Add map resize calls to April 2020, December 2020, January 2021 #375

Closed atomtay closed 3 years ago

atomtay commented 3 years ago

Resolves #368 .

Why is this change necessary?

For some reason, Chrome users sometimes view only partially-loaded maps, or the height maxes out at 300px instead of reaching the expected 500px.

How does it address the issue?

After the map loads, a resize event is fired/ Because the rest of the DOM is set, the map should now fill its proper space. To test, go to each map page on Chrome, then hard refresh, then regular refresh; the map should load normally in all 3 scenarios.

What side effects does it have?

Users with an initially-partially-loaded map will briefly notice the resize.