v-leaflet background color

Hi,

i’ve added a layer getting tiles from our own web servlet to v-leaflet LMap. The tiles are transparent png images.

How can i change the background color of LMap.
I’ve tried in my themes styles.css:

.v-leaflet {
background-color: #FCFFF6;
}

.leaflet-container {
background-color: #FCFFF6;
}

.mystyle {
background-color: #FCFFF6;
}

mystyle i’ve added with addStyleName to LMap.

Any ideas?

Thanks Axel

Hi,

This works fine for me:

Page.getCurrent().getStyles().add(".v-leaflet .leaflet-container {background: yellow;}");

Also rule without .v-leaflet seems to work, but I added it there as you might need that in your CSS file as gwt module injects styles later lazily.

cheers,
matti

Works great.

Thanks Matti!

Regards Axel