clarity-h2020 / map-component

The Map Component is a reusable, flexible and highly configurable Building Block meant to be used throughout CSIS.
https://csis.myclimateservice.eu/
1 stars 1 forks source link

The loading animation of the map-component does not disappear #66

Closed therter closed 5 years ago

therter commented 5 years ago

Sometimes, the initialisation of the map-component does not work and the loading animation will be shown forever.

Bildschirmfoto vom 2019-10-25 12-32-24

This problem is not easy to reproduce. But I can reproduced it relatively frequently in the data package view (e.g. https://csis.myclimateservice.eu/node/682) in my local instance. I have seen this also on the production site, but it is difficult to reproduce.

p-a-s-c-a-l commented 5 years ago

I wasn't able to reproduce this problem at all...

Anyway, That's not a problem of the map component. If the loading animation does not go away, then Drupal.behaviors.mapComponentIFrameConnector (see generic-map.html) is not called. This function replaces the initial static content of the iFrame (the loading animation) with the actual MapComponent. It calls initMapComponent in csis_iframe_connector.js.

So I assume that the JavaScript in the Drupal Page is not executed properly. Probably just a caching issue. If you ever encounter this problem again, please check the logs in the JavaScript console.