-
Notifications
You must be signed in to change notification settings - Fork 466
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] Is it possible to set legend's text style? #660
Comments
OK, I figured out from the code, that it's not possible. Try to fix it with #662 |
I've added a You can also add textStyle to the items themselves to change their fonts one by one: legend.addItem({
title: 'Car placemark',
feature: f0,
textStyle: new ol.style.Text({ font: 'bold 13px serif'})
}); |
@Viglino Hi, how do I display multiple line for the item title, I want to display a long string and I add |
Items are limited to 2 lines. |
I'd like to modify the legend's title's text style (eg. add underline), the first item's style (eg.
font-style: italic
), and all other items style (make them a bit smaller). Is it possible?Thanks!
The text was updated successfully, but these errors were encountered: