Interestingly, if I include the functions.php script block but don’t include isajax="true" in the shortcode, the map loads just fine on a fresh page load, but does not work if navigating from another page (since the page load is done via AJAX at that point). However, if I add isajax="true" to the shortcode, that’s when the error in the post is encountered and the map is not displayed under any circumstances.