function selectPargoPoint(item) {
alert("Selected Pargo Point: " + item.data["pargoPointCode"]);
}
map.ready
event:window.addEventListener("message", function(event) {
if (event.data.type === "map.ready") {
console.log("Pargo map is ready!");
}
}, false);
<iframe
src="https://map.pargo.co.za/?token=uvwNZGSiUypW1GHiTGFZiqWWu2W4s78SwUIEWp10GKogqJKt"
width="600"
height="400"
allow="geolocation"
style="border: 1px solid #000;"></iframe>
function displayIFrame(address){
if (address){
document.getElementById('iframe').src = 'https://map.pargo.co.za/?token=uvwNZGSiUypW1GHiTGFZiqWWu2W4s78SwUIEWp10GKogqJKt&address=' + address;
} else {
document.getElementById('iframe').src = 'https://map.pargo.co.za/?token=uvwNZGSiUypW1GHiTGFZiqWWu2W4s78SwUIEWp10GKogqJKt';
}
document.getElementById('iframe').style.display = 'block';
}
function displayIFrame(address){
if (address){
document.getElementById('iframe').src = 'https://map.pargo.co.za/?token=uvwNZGSiUypW1GHiTGFZiqWWu2W4s78SwUIEWp10GKogqJKt&address=' + address;
}
document.getElementById('iframe').style.display = 'block';
}
function openWindow(address){
let url = 'https://map.pargo.co.za/?token=uvwNZGSiUypW1GHiTGFZiqWWu2W4s78SwUIEWp10GKogqJKt';
if (address) {
url += '&address=' + address;
}
window.open(url);
}
function openWindow(address){
let url = 'https://map.pargo.co.za/?token=uvwNZGSiUypW1GHiTGFZiqWWu2W4s78SwUIEWp10GKogqJKt';
if (address) {
url += '&address=' + address;
}
window.open(url);
}