Named exports from ol/style/Style

This commit is contained in:
Tim Schaub
2018-02-22 23:34:52 -08:00
parent ca4dfb9ec3
commit 580c2c6545
8 changed files with 35 additions and 34 deletions

View File

@@ -13,7 +13,7 @@ import Interaction from '../interaction/Interaction.js';
import VectorLayer from '../layer/Vector.js';
import {clear} from '../obj.js';
import VectorSource from '../source/Vector.js';
import Style from '../style/Style.js';
import {createEditingStyle} from '../style/Style.js';
/**
@@ -334,7 +334,7 @@ Select.prototype.setMap = function(map) {
* @return {ol.StyleFunction} Styles.
*/
Select.getDefaultStyleFunction = function() {
const styles = Style.createDefaultEditing();
const styles = createEditingStyle();
extend(styles[GeometryType.POLYGON], styles[GeometryType.LINE_STRING]);
extend(styles[GeometryType.GEOMETRY_COLLECTION], styles[GeometryType.LINE_STRING]);