heremaps / maps-api-for-javascript-examples

Self-contained examples for Maps API for JavaScript v3.

Home Page:https://developer.here.com/javascript-apis/documentation/v3/maps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is there any way to change the color of the Infobubble?

jithu12 opened this issue · comments

Hi @jithu12. Sure, the default style of the UI controls comes from the mapsjs-ui.css file. You can override it with a CSS like this:

/** Style for the info bubble content */
.H_ib_body {
  background: rgb(45, 213, 201);
}
/** Style for the info bubble tail */
.H_ib.H_ib_top .H_ib_tail::after {
    border-color: rgb(45, 213, 201) transparent;
}

Mind the order of that style and the mapsjs-ui.css on your page or alternatively use !important. Example: http://jsfiddle.net/029cd5pu/

thanks man