Use assertInstanceof instead of getVectorSource

This commit is contained in:
Tom Payne
2013-12-13 20:29:45 +01:00
parent c97588c1e2
commit 1499af397d
2 changed files with 3 additions and 10 deletions

View File

@@ -2,7 +2,6 @@ goog.provide('ol.layer.Vector');
goog.require('ol.feature');
goog.require('ol.layer.Layer');
goog.require('ol.source.Vector');
/**
@@ -63,14 +62,6 @@ goog.exportProperty(
ol.layer.Vector.prototype.getStyleFunction);
/**
* @return {ol.source.Source} Vector source.
*/
ol.layer.Vector.prototype.getVectorSource = function() {
return /** @type {ol.source.Vector} */ (this.getSource());
};
/**
* @param {function(ol.geom.Geometry): boolean|undefined} renderGeometryFunction
* Render geometry function.