Hi @StevenP, thanks for your quick response. The issue seems to be the script on line 20 that is being called, there is some code there our parser does not like. The workaround is listed below, backup and copy your existing code to somewhere so you can get it back, and then replace the code in the Footer with the following code, save changes and republish. See if that helps
Let me know, Cheers, Dave
<script>
$(document).ready(function() {
var mapState = true;
$('.togglemapbutton').click(function(e) {
e.preventDefault();
if(mapState) {
$(this).html('Hide map');
mapState = false;
} else {
$(this).html('Show map');
mapState = true;
}
});
});
</script>
<script language="JavaScript">
<!--
document.writeln("<script src='https://maps.googleapis.com/maps/api/js?key=AIzaSyDGh_pfKG3qM_zNbOWqolFkGsuV9DoCXIM&sensor&sensor=false&extension=.js'></script> ");
//-->
</script>
<script>
google.maps.event.addDomListener(window, 'load', init);
var map;
function init() {
var mapOptions = {
center: new google.maps.LatLng(61.736728,17.1178),
zoom: 13,
zoomControl: false,
disableDoubleClickZoom: true,
mapTypeControl: false,
scaleControl: false,
scrollwheel: true,
panControl: false,
streetViewControl: false,
draggable : true,
overviewMapControl: false,
overviewMapControlOptions: {
opened: false,
},
mapTypeId: google.maps.MapTypeId.ROADMAP,
styles: [ { "stylers": [ { "saturation": -100 } ] },{ "featureType": "water", "elementType": "geometry.fill", "stylers": [ { "color": "#0099dd" } ] },{ "elementType": "labels", "stylers": [ { "visibility": "off" } ] },{ "featureType": "poi.park", "elementType": "geometry.fill", "stylers": [ { "color": "#aadd55" } ] },{ "featureType": "road.highway", "elementType": "labels", "stylers": [ { "visibility": "on" } ] },{ "featureType": "road.arterial", "elementType": "labels.text", "stylers": [ { "visibility": "on" } ] },{ "featureType": "road.local", "elementType": "labels.text", "stylers": [ { "visibility": "on" } ] },{ } ],
}
var mapElement = document.getElementById('Map');
var map = new google.maps.Map(mapElement, mapOptions);
var locations = [
['Steven Persson', 'I\'m a graphic designer working with responsive web, branding and prints. I\'m currently available for freelance projects or a full time job.', '070 27 50 644', 'stevenpersson@gmail.com', 'stevenpersson.com', 61.74359039999999, 17.1249836, 'https://mapbuildr.com/assets/img/markers/hollow-pin-black.png']
];
for (i = 0; i < locations.length; i++) {
if (locations[i][1] =='undefined'){ description ='';} else { description = locations[i][1];}
if (locations[i][2] =='undefined'){ telephone ='';} else { telephone = locations[i][2];}
if (locations[i][3] =='undefined'){ email ='';} else { email = locations[i][3];}
if (locations[i][4] =='undefined'){ web ='';} else { web = locations[i][4];}
if (locations[i][7] =='undefined'){ markericon ='';} else { markericon = locations[i][7];}
marker = new google.maps.Marker({
icon: markericon,
position: new google.maps.LatLng(locations[i][5], locations[i][6]),
map: map,
title: locations[i][0],
desc: description,
tel: telephone,
email: email,
web: web
});
}
}
</script>