Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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:
However, I can see the element that the mentioned in the error message is present:
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
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.