simplegmaps.init({ container: '#simplegmaps-1', MapOptions: { zoom: 14 } }); document.querySelector('#geoLocationButton').addEventListener('click', function(event) { simplegmaps.GeoLocation.set(); event.preventDefault(); });