I have the code below, the moment I place the second marker the 1st one is not rendered – Im stumped – if I remove the content: pinBackground.element both is rendered again
const pinBackground = new PinElement({
background: “#FBBC04”,
});
new google.maps.marker.AdvancedMarkerElement({
map,
title: ‘wittebergstudio’,
content: pinBackground.element,
position: {
lat: -28.507,
lng: 27.933
}
});
new google.maps.marker.AdvancedMarkerElement({
map,
title: ‘rusendalcottages’,
content: pinBackground.element,
position: {
lat: -28.506,
lng: 27.940
}
});
different color pins/marker