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.

enter image description here

.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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -