Skip to content

Commit

Permalink
fix: always use e.layer.feature.properties.color in highlight mouseou…
Browse files Browse the repository at this point in the history
…t if it exists
  • Loading branch information
trafficonese committed Aug 13, 2024
1 parent ec6922c commit b83abb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inst/htmlwidgets/lib/FlatGeoBuf/fgb.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ LeafletWidget.methods.addFlatGeoBuf = function (layerId,
// remove highlight when hover stops
'mouseout': function(e) {
const layer = e.target;
if (style.color === null && e.layer.feature.properties.color) {
if (e.layer.feature.properties.color) {
style.color = e.layer.feature.properties.color
}
layer.setStyle(style);
Expand Down

0 comments on commit b83abb8

Please sign in to comment.