I want my icons in Street View disappear when clicked. I tried to do it in Jquery, this is my code:
var image = 'bonus.png';
var marker1 = new google.maps.Marker({
position: new google.maps.LatLng(-5.758051,-35.207079),
map: myPano,
icon: image,
height: 50
});
google.maps.event.addListener(marker1, 'click', function() {
$("marker1").unbind();
});
Does any of you know how to fix this? Thanks for your help!