I am getting
Uncaught ReferenceError: GetCountOfPeople is not defined at HTMLButtonElement.onclick (GetCountOfPeople:1)
Not sure what am i doing wrong.
export function GetCountOfPeople (LocationGuid) {
'use strict';
try {
console.log('Called GetCountOfPeople');
} catch (e) {
console.error("Error Occured in GetCountOfPeople Method");
}
}
This button is rendered like this when inspecting in developer tools, element inspector
<button class="btn btn-success mt-2" onclick="GetCountOfPeople('e28e06b4-6434-44fa-812b-d86e2c061bce')" tabindex="0">GetCountOfPeople Here</button>
This button is generated from the following code
var infowindow = new google.maps.InfoWindow();
google.maps.event.addListener(marker, 'click', (function (marker) {
return function () {
InfocusMarker = marker;
var content = "<span style='font-weight: bold;'>" + marker.LocationName + "</span>"
content = content + "<br/><button class='btn btn-success mt-2' onclick=GetInLine('" + marker.LocationGuid + "')>GetInLine Here</button>"
}
infowindow.marker = marker;
infowindow.setContent(content);
infowindow.open(mapNew, marker);
}
})(marker, i));