I've added a map (OpenLayers) in one of the CMS templates to let the page editors put markers in geographic locations.
However, I've got a problem: As I switch between subpages in the CMS, the map won't load. It requires a full page reload (F5 in browser) to make the map show up. Which, I guess, is to be expected, as subpage navigation is executed dynamically in AJAX, right?
So my question is: where do I hook up my JS map initialization function so that it is called each time a CMS subpage containing a map is loaded?