Good evening,
I create bookmarks on the map using the method:
function addMarkersLabel() {
var latlngbounds = new google.maps.LatLngBounds();
for (var i in points) {
var marker = new MarkerWithLabel({
position: points[i].latLng,
title: points[i].titulo,
icon: points[i].icone,
zIndex: points.length - Number(i),
map: GMaps,
labelContent: points[i].labelContent,
labelAnchor: points[i].labelAnchor,
labelClass: points[i].labelClass
});
addMarkerListener(marker, points[i].id);
markers.push(marker);
latlngbounds.extend(marker.position);
}
}
But I need to allow after the map is created to show / hide the markers, using the title field of markers as a filter, if the title is equal to X, if not hidden.