Today I recognized that the google map is not loading after the cookie confirmation. It works a coupleof weeks before.
Cookie Notice Vers. 1.2.45 for WordPress 5.0.2
I use this code in the footer:
<script>
var geocoder;
var map;
var isDraggable = $(document).width() > 768 ? true : false;
function initialize() {
geocoder = new google.maps.Geocoder();
var mapOptions = {
zoom: ,
disableDefaultUI: false,
scrollwheel: false,
panControl: true,
scaleControl: true,
draggable: isDraggable,
mapTypeId: google.maps.MapTypeId.ROADMAP,
styles: [ { "featureType": "water", "elementType": "geometry", "stylers": [ { "visibility": "on" }, { "color": "#73b0c9" } ] },{ "featureType": "landscape.natural", "stylers": [ { "color": "#e3d5bf" } ] },{ "featureType": "road", "stylers": [ { "color": "#f8f0d9" } ] },{ } ]
}
map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);
codeAddress();
}
function codeAddress() {
var address = "";
geocoder.geocode( { 'address': address}, function(results, status) {
if (status == google.maps.GeocoderStatus.OK) {
map.setCenter(results[0].geometry.location);
var iconBase = '/images/';
var marker = new google.maps.Marker({
map: map,
icon: iconBase + 'map-icon.png',
position: results[0].geometry.location
});
} else {
alert('Geocode was not successful for the following reason: ' + status);
}
});
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
Google Chrome gives me this error message:
Google Maps JavaScript API warning: SignedInNotSupported https://developers.google.com/maps/documentation/javascript/error-messages#signed-in-not-supported
Is it new that a google api is provided also for google map (as well as at google captcha?) ?
And if so, how does the code have to be adjusted?
Thanks a lot and a happy new year.