lizmap-web-client: [BUG/workaround] Change color selection in QGIS does not change selection or highlighting in LWC

Master branch, QGIS 2.18

When i change the color selection in QGIS project properties, the color does not change in the LWC (selection or highlighting). The color stays in yellow. Maybe CSS could override?

In HTML i see

<path id="OpenLayers_Geometry_Polygon_1917" d=" M 637.6069366662632,335 .........................."
fill-rule="evenodd" fill="none" stroke="yellow" stroke-opacity="1" stroke-linecap="round" stroke-linejoin="round" stroke-width="5"></path>

I edit it manually, it’s ok… but how to add it to a theme? I added this in projectdirectory/media/css/map.css

path[id^="OpenLayers_Geometry_Polygon_"] ,path[id*=" OpenLayers_Geometry_Polygon_"] 
{
	stroke: blue;
}

No results

About this issue

  • Original URL
  • State: open
  • Created 6 years ago
  • Comments: 18 (3 by maintainers)

Most upvoted comments

Second workaround is to use media/themes/default/css and add the map.css with this content :

path[id*="OpenLayers_Geometry_Polygon_"] {
  stroke : DarkMagenta
 }