google geolocation not working in safari

google geolocation not working in safari

Hi

I have worked on a google map for some time but suddenly I get the error 
TypeError: Unable to delete property.
in the consol and the system crashes when I use safari (but not the other browsers). I cannot see on which line it is but I have debug the error to happen when this code is generated:

var mapOptions = {
zoom: 12,
center: new google.maps.LatLng(55.745254, 10.887451),
mapTypeId: google.maps.MapTypeId.ROADMAP,
streetViewControl: false,
scaleControl: true
};
try
{
map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);
}
catch(e)
{
console.log(e);
}

It works in all other browser and I do not get the error in safari if I remove map options in safari
map = new google.maps.Map(document.getElementById('map-canvas'));

The error also happens when this code is executed:

var bounds = new google.maps.LatLngBounds(); bounds.extend(new google.maps.LatLng(57.539024, 7.646484)); bounds.extend(new google.maps.LatLng(54.812504, 15.534668)); map.fitBounds(bounds);

And here it is the last line map.fitBounds(bounds) that causes the error but still only in safari.

I use safari version 5.34.57.2. I have also reinstalled safari, but it did not help

Regards, Carsten