javascript - How to change Google Maps bus stops default icon? -


how change bus icon javascript? it's easy change markers , and route color , on, how change icon shown on picture below?

how change icon?

there no api-based way change these icons.

an option use css, example using avatar instead of icon:

  /*this hide bus-icon*/   img[src="https://maps.gstatic.com/mapfiles/transit/iw2/6/bus.png"]{     width:0 !important;   }    /*use custom icon background span follows icon*/   img[src="https://maps.gstatic.com/mapfiles/transit/iw2/6/bus.png"]+span{     background:url(http://i.stack.imgur.com/8lcvw.png?s=32&g=1) no-repeat;     background-size: 16px 16px;     padding-left:18px;   } 

but it's workaround, work long markup these tooltips or src of icon not changed.


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -