L.control.attribution question

22 views
Skip to first unread message

ahma...@gmail.com

unread,
Feb 19, 2016, 10:57:38 AM2/19/16
to Leaflet

Hello everyone,


Thank you for offering your help here. I have built a MapBox application. I wanted to add a copyright prior to MapBox's copyright logo. I used the L.control.attribution as:


varName = L.control.attribution({prefix: 'some text'}).addTo(map);



I used FireFox inspector and found that 'some text' is a child of ->  a div class="leaflet-control-attribution leaflet-control" from leaflet.css.


I have my own custom.css file and I tried to use it to override the class leaflet-control-attribution in leaflet.css but it is not working. Is this something from MapBox.css to prevents overriding or from leaflet? Is there a solution to fix this? I just wanted to change the background of the parent div of the L.control.attribution DOM object.


Thanks in advance.


Ahmad

Reply all
Reply to author
Forward
0 new messages