Merge pull request #5445 from fblackburn/select_interaction_fix_style_function
Select interaction default styling function can now handle geometry less features
This commit is contained in:
@@ -301,6 +301,9 @@ ol.interaction.Select.getDefaultStyleFunction = function() {
|
||||
styles[ol.geom.GeometryType.LINE_STRING]);
|
||||
|
||||
return function(feature, resolution) {
|
||||
if (!feature.getGeometry()) {
|
||||
return null;
|
||||
}
|
||||
return styles[feature.getGeometry().getType()];
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user