This commit is contained in:
Connor Turland 2014-10-08 03:47:45 -04:00
parent 7e182b8beb
commit 550e89daef

View file

@ -36,14 +36,18 @@ page.open(url, function (status) {
};
page.evaluate(function() {
$(document).on(Metamaps.JIT.events.animationDone, function(){
$('.upperLeftUI, .upperRightUI, .mapControls, .infoAndHelp, .uv-icon, .footer').hide();
Metamaps.JIT.zoomExtents();
if (typeof window.callPhantom === 'function') {
window.callPhantom();
}
});//document.on animationDone
$(document).ready(function () {
//$(document).on(Metamaps.JIT.events.animationDone, function() {
setTimeout(function(){
$('.upperLeftUI, .upperRightUI, .mapControls, .infoAndHelp, .uv-icon, .footer').hide();
Metamaps.JIT.zoomExtents();
window.callPhantom();
}, 5000);
});
});//page.evaluate
} else {
//failed to load
phantom.exit();