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

java - HTTP Status 500 - An exception occurred processing JSP page /second.jsp at line 15 -

php - Using str_replace to translate a MySQL Table in html -

asp.net mvc - Cannot display error message on Editor or EditorFor -