Skip to content

Commit

Permalink
Update selectionmanager.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jokd committed Oct 20, 2023
1 parent a1c17cb commit c80068b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/selectionmanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,10 @@ const Selectionmanager = function Selectionmanager(options = {}) {
* @param {any} feature
*/
function featureStyler(feature) {
console.log(feature);
if (highlightedFeatures.includes(feature)) {
return Style.createStyleRule(multiselectStyleOptions.highlighted);
} else if (feature.getId().split('.')[0] === infowindow.getActiveSelectionGroup()) {
} else if (feature.getId() && feature.getId().toString().split('.')[0] === infowindow.getActiveSelectionGroup()) {
return Style.createStyleRule(multiselectStyleOptions.inActiveLayer ? multiselectStyleOptions.inActiveLayer : multiselectStyleOptions.selected);
}
return Style.createStyleRule(multiselectStyleOptions.selected);
Expand Down

0 comments on commit c80068b

Please sign in to comment.