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:
Marc Jansen
2016-09-14 16:21:31 +02:00
committed by GitHub

View File

@@ -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()];
};
};