javascript - Overlap of labels for MarkerWithLabel on custom marker on Google Maps -
i used infobox create label marker custom icon. scenario of overlapping markers, labels became illegible , had solution or alternative.
it suggested in previous question should make use of markerwithlabel. helps, if markers overlap exactly, can see label still coming through after setting opacity 1 , making background same custom marker.
.labels { background-color: #ff5959; } gmarker = new markerwithlabel({ position: somecenterposition, icon: customimageurl, draggable: false, raiseondrag: false, map: map, title: sometitle, labelcontent: atitle, labelanchor: new google.maps.point(someoffsetx, someoffsety), labelclass: "labels", // css class label labelstyle: {opacity: 1} });
the 2 marker behind's label , 15 should displayed on front marker. need have 2 , background behind marker label of 15.
Comments
Post a Comment