And I want that when clicking on a marker, an opaque gray layer appears, but the marker is superimposed, something like this.
The layer I put it with css
<div id="map" style="width:100%; height:93vh;"></div>
<div ng-show="vm.show" onClick="vm.show=false" style="position: absolute; left: 0px; top:0px; bottom:0px; background:#000000; opacity:0.5; width:100%; height:100%; color:#FFFFFF; z-index:10;">
And I send him to call with this event:
marker.addListener('click', function() {
_markers[this.id].setZIndex(10000);
vm.show = true;
});