Diocesan Website

+ Map on Click - Customer Care

Assigned to
Ryan Ross, Developer at Diocesan Ryan R.

Comments & Events

Ryan Ross, Developer at Diocesan
http://dev.diocesan.com/customer-care/

Clicking on Locations now loads the map as intended.  The answer from the developer was to copy the initial load script, and run that after the tab is open.

That works.  I put a 1/4 second delay on loading the map, because the first few times I tested, the tab wasn't visible yet and the map did not reload.  Using 1/4 second seemed to work well, barely noticeable by the naked eye.

One thing to keep in mind, is that this solution is hard-coded in the theme functions.  Meaning if changes to the map are made, the "initialize" script will also need to be updated in /js/functions.js

Webcraft support response: "Yes, you can do that. You can see the code that you need to run by viewing the page's source (from the browser) and searching for ".ubergooglemaps". If you just copy-paste this code to make it run after the button is clicked and the tab is visible, it will work."
Curt Ankin, Director of Marketing at Diocesan
Curt Ankin completed this to-do.