Give vector image source a style option

This commit is contained in:
Tim Schaub
2014-02-07 12:32:42 -07:00
parent 1072f6dfa7
commit b309c44020
4 changed files with 41 additions and 18 deletions

View File

@@ -121,7 +121,7 @@ dragAndDropInteraction.on('addfeatures', function(event) {
map.getLayers().push(new ol.layer.Image({
source: new ol.source.ImageVector({
source: vectorSource,
styleFunction: styleFunction
style: styleFunction
})
}));
var view2D = map.getView().getView2D();