Excuse me for this handling error on the previous message
Okay,
First, I do the installation: npm install --save snazzy-info-window
and I check the presence of the “snazzy-info-window” directory in the “node-modules” directory
My code in Template.MONTEMPLATE.rendered
// I am waiting for the loading of googlemap
let int = setInterval(googleCharge, 200);
function googleCharge() {
if (typeof google !== undefined) {
clearInterval(int);
// I display the map
let map = new google.maps.Map(elemMap, {
zoom: 8,
center: {lat:45.47671759842219, lng:-0.7970119099885551}
});
// I display a Marker
let marker = new google.maps.Marker({map: map, position: {lat: -27.467, lng: 153.027},});
// I build the window snazzy
let infoWin = new SnazzyInfoWindow({
marker: marker,
content: ‘fenetre Snazzy!’
});
// I display the window
infoWin.open() ;
}
}
Runtime error: Uncaught ReferenceError: SnazzyInfoWindow is not defined at googleCharge
Should we add an ‘import’ somewhere?
In general it is not necessary to make imports for packets load with npm.
Thanks for your help