Conditional linear Gradient on leaflet map

Dear all,

I would like to visualise an additional variable on a leaflet map in Shiny using different hatched lines for the polygons.

As a fist basic step I have tried to change the whole map. in CSS there is a function like the following that I have included in my styles.css file but with no results

.leaflet-interactive{
background: repeating-linear-gradient(
45deg,
#606dbc,
#606dbc 10px,
#465298 10px,
#465298 20px);
}

I have also tried to use path but again no changes in the map

.path {
background: repeating-linear-gradient(
45deg,
#606dbc,
#606dbc 10px,
#465298 10px,
#465298 20px);
}

How can I modify the map and how can I do it conditionally on the values of a factor variable in shiny?

Any suggestions are welcome

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.