Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
rbartley
Specialist II
Specialist II

Qlik Sense - GeoAnalytics - Unable to create map: element with id 'idevio-mapdiv-xxxxxxxxxx' not found

Hi everyone,

I have built a mashup that includes two geoAnalytics maps as well as their associated arealayer and datalayer extensions.  The maps are not displayed at first but when the user clicks on a tab button.  The first time I click on the button, everything works as expected.  However, when I click on the first button to display other visualisations and then click on the map button to display the maps again, I receive an error:

Unable to create map: element with id 'idevio-mapdiv-xxxxxxxxxx' not found

Here is a screenshot that illustrates the problem:

GeoAnalytics issue when returning to page.PNG

However, I can see the element that the mentioned in the error message is present:

GeoAnalytics issue when returning to page element.PNG

So, it looks like a synchronisation issue to me.  I have added a vis.close() call when clicking on the non-map button, but I still receive the same error.  Does anyone have any ideas?

Thanks in advance,

Richard

1 Reply
rbartley
Specialist II
Specialist II
Author

In the end, I resolved this by not closing the visualization when navigating away and not re-calling the getObject method.  Instead, on clicking the navigation buttons I check to see whether the maps tab has been visited and, if not, get all of the visualizations for that tab.  If it has been visited before in the session, getObject is not called.  I think that this means that the data behind the maps is kept in memory, which is not very efficient, but I couldn't figure out another way of solving this and no-one has responded as yet.

If anyone does have any ideas, please let me know.  I'll keep this discussion open for a few more days.