Highlight features

المشرف العام

Administrator
طاقم الإدارة
I was updating today the plunging qgis2web. After that, I exported my map to leaflet web map and selecting the option Highlight features. the result was that only polygons were Highlight but not lines features. i had a look on index.html generated.

this is the var highlightLayer now

var highlightLayer;

function highlightFeature(e) { highlightLayer = e.target; highlightLayer.setStyle({ fillColor: '#ffff00', fillOpacity: 1 });and this is from previous index.html ( from a older map) before the update

var highlightLayer;

function highlightFeature(e) { highlightLayer = e.target; highlightLayer.setStyle({ weight: 5, color: '#211AE5', dashArray: '', fillOpacity: 0.7replacing this part of the code in the new index.html, works ok. ( line features are also Highlight)



أكثر...
 
أعلى