Static ol.style.Style functions

This commit is contained in:
Tim Schaub
2016-08-09 00:36:28 -06:00
parent d4a5b2f48e
commit 2da724cad4
8 changed files with 28 additions and 27 deletions
+1 -1
View File
@@ -312,7 +312,7 @@ ol.inherits(ol.interaction.Draw, ol.interaction.Pointer);
* @return {ol.StyleFunction} Styles.
*/
ol.interaction.Draw.getDefaultStyleFunction = function() {
var styles = ol.style.createDefaultEditingStyles();
var styles = ol.style.Style.createDefaultEditing();
return function(feature, resolution) {
return styles[feature.getGeometry().getType()];
};