Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove RichMarker shadow class from google maps api?

For creating own <div> in my google maps api I have used RichMarker library, documentation here: (link) and library here: (link). So my code look like this:

for(i = 0; i < location.length; i++){
    var loc = location[i];
    var coordinates = new google.maps.LatLng(loc[1], loc[2]);
    var marker = new RichMarker({
        position: coordinates,
        map: map,
        zIndex: coordinates[3],
        content: '<div class="myClass">TEXT</div>'
    });
}

Now code above draw a shadow around my div (this is not my css, that draw a shadow, I gues that it is css from RichMarker library). Here is a picture:

enter image description here

My question is: How to remove this shadow'

Realy thanks for help.

like image 815
DaniKR Avatar asked Dec 19 '22 05:12

DaniKR


1 Answers

Have you tried:

var marker = new RichMarker({
        position: coordinates,
        map: map,
        zIndex: coordinates[3],
        shadow: 'none',
        content: '<div class="myClass">TEXT</div>'
    });
like image 83
Drazen Bjelovuk Avatar answered May 04 '23 11:05

Drazen Bjelovuk