Export ol.source.ImageVector's styleFunction option

This commit is contained in:
Éric Lemoine
2014-01-12 11:28:00 +01:00
parent d5b7527f1f
commit babd133cf6
2 changed files with 6 additions and 2 deletions

View File

@@ -7,6 +7,7 @@ goog.require('goog.events');
goog.require('goog.events.EventType');
goog.require('goog.vec.Mat4');
goog.require('ol.extent');
goog.require('ol.feature');
goog.require('ol.render.canvas.ReplayGroup');
goog.require('ol.renderer.vector');
goog.require('ol.source.ImageCanvas');
@@ -41,9 +42,10 @@ ol.source.ImageVector = function(options) {
/**
* @private
* @type {ol.feature.StyleFunction}
* @type {!ol.feature.StyleFunction}
*/
this.styleFunction_ = options.styleFunction;
this.styleFunction_ = goog.isDef(options.styleFunction) ?
options.styleFunction : ol.feature.defaultStyleFunction;
/**
* @private