Skip to content

Commit

Permalink
google async (test)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlterTobi committed Mar 28, 2024
1 parent 2fa1110 commit b3b28cd
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions wfes-WayfarerStats.js
Original file line number Diff line number Diff line change
Expand Up @@ -515,12 +515,13 @@ fnV1HwAAAABJRU5ErkJggg==`;
`;
}
script.innerHTML += `
function initMap() {
map = new google.maps.Map(document.getElementById('map'), {
zoom: 7,
center: {lat: 51.38, lng: 10.12},
mapTypeId: 'hybrid'
})
async function initMap() {
const { Map } = await google.maps.importLibrary("maps");
map = new Map(document.getElementById('map'), {
zoom: 7,
center: {lat: 51.38, lng: 10.12},
mapTypeId: 'hybrid'
})
`;
script.innerHTML += innerScript + "}";

Expand Down

0 comments on commit b3b28cd

Please sign in to comment.