How can I get hold of a OpenLayers3
map object associated with a specific id or class (unique)?
I searched and found this thread, which says something like:
var map = $('.my_map_class').data('openlayers'); //assuming there is just one map on the page
But I got an typeerror saying that map is not defined. I have tried replacing
jQuery, and it didn't work either.