You have to validate google object otherwise this will crash / disturb admin pages, while editing content, if there is no internet connectivity, you can turf off internet and then check if you would like to confirm issue, I just added 2 lines to your event function
if( typeof google === "object" && typeof google.maps === "object" )
{
$(document).ready(function(){
// You code goes here...
})
}
Modified code
https://gist.githubusercontent.com/Akshay-Hegde/b7011d0ce5d90eb2fc53/raw/ad386bd742b991dfcd367343e2767adfdc4aad91/field.geocoder.php
You have to validate google object otherwise this will crash / disturb admin pages, while editing content, if there is no internet connectivity, you can turf off internet and then check if you would like to confirm issue, I just added 2 lines to your event function
if( typeof google === "object" && typeof google.maps === "object" )
{
$(document).ready(function(){
// You code goes here...
})
}
Modified code
https://gist.githubusercontent.com/Akshay-Hegde/b7011d0ce5d90eb2fc53/raw/ad386bd742b991dfcd367343e2767adfdc4aad91/field.geocoder.php