diff --git a/src/ol/layer/vectortile.js b/src/ol/layer/vectortile.js index 0e001e882f..e248a92384 100644 --- a/src/ol/layer/vectortile.js +++ b/src/ol/layer/vectortile.js @@ -116,3 +116,12 @@ ol.layer.VectorTile.prototype.setUseInterimTilesOnError = function(useInterimTil this.set( ol.layer.TileProperty.USE_INTERIM_TILES_ON_ERROR, useInterimTilesOnError); }; + + +/** + * Return the associated {@link ol.source.VectorTile vectortilesource} of the layer. + * @function + * @return {ol.source.VectorTile} Source. + * @api + */ +ol.layer.VectorTile.prototype.getSource;