Change default background grey color of map component

Hello,
Is it possible to change the default background grey color of map component? When client offline instead of displaying map tile, it show grey color and I want to change the background color.

I don’t think this is possible, but there are a few things you can do instead:

  1. Just make the map invisible if you are offline and there’s no content to display.
  2. Put another image or frame over top of it that is only visible when they are offline. You could just have a solid color square as an image and make if visible when offline.

Gary

The reason I need this is, offshore Oil & Gas platform there is no internet and i want to create overview of the field. If I can replace grey background with blue and put my view icon on it in map, it show want I want.
In sea there no street only plain blue color on the map.
This trick make use of map competent offline for this special case.

Did you get the solution of this topic ?

.leaflet-container {

background-color: transparent !important;

}

Thank you.