Multiline Tooltip in a Map Marker Perspective

Hello, I wanna know if i could use multiline text in marker tooltip on Map Component in Perspective.
I’ve used \n, \r, etc but doesn’t work. Anybody knows how? or this can’t be possible.
Thanks

You should be able to if you add a style to the marker
white-space: pre

Seems it has no property for this, so you’ll have to use theme.css or css injection

.leaflet-tooltip{
  white-space: pre
}

image

I’m going to test and i tell you… thanks for your time

1 Like

Hello again Victor, could you help to tell me how i must use that property? I don’t know how agregate theme.css. where should i put .leaflet-tooltip?, etc

thanks

Anywhere that’s not already inside a rule.

there is a tutorial for theming

you can also use injeciton

Thank you Victor!!, i hope it works for tooltip property.

Ítalo

I tested it with injection and it worked for me^^