I'm working on setting up the attributions for a map, and I'm wondering how to access more the styling options for the attribution control.
I've modified the .ol-attribution ul {} css property to display the items in a vertical list (display: table), but the default MapQuest attribution shows up on 3 lines instead of 1. Is this something I can fix? The line below is another layer I have. Also, is there a way to configure where the logos will be placed? I've read documentation but didn't find anything that gets so fine-grained. I also tried overwriting the ol.source.MapQuest({ attribution: …}) with all the same words/links in a single html line, but the stock attribution still shows up.
Also, when the MapQuest layer is removed, it text continues to wrap in a funny way:
Best Answer
You can override the look and feel of
ol-attribution
class in your CSS. Also you can provide your own CSS class:Note that in this case,
the ol-attribution
class will not be added to the element.For your problem with list you should not use
display:table
butdisplay:block
on theul
anddisplay:list-item
on theli
. You will then get a vertical list that behave better.