Be stricter with types
This commit is contained in:
@@ -56,7 +56,8 @@ ol.source.Vector = function(opt_options) {
|
||||
attributions: options.attributions,
|
||||
logo: options.logo,
|
||||
projection: options.projection,
|
||||
state: options.state
|
||||
state: goog.isDef(options.state) ?
|
||||
/** @type {ol.source.State} */ (options.state) : undefined
|
||||
});
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user