From c55d26d1791a0fb72a5cb576e4efcf7a53cc8232 Mon Sep 17 00:00:00 2001 From: stonio Date: Tue, 4 Oct 2016 19:15:00 +0200 Subject: [PATCH] Override ol.layer.Vector#getSource() (#11703) Reference: http://openlayers.org/en/latest/apidoc/ol.layer.Vector.html --- openlayers/openlayers.d.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/openlayers/openlayers.d.ts b/openlayers/openlayers.d.ts index ed3c8e9e21d76b..8f7309e92af5d7 100644 --- a/openlayers/openlayers.d.ts +++ b/openlayers/openlayers.d.ts @@ -6360,6 +6360,13 @@ declare module ol { */ constructor(opt_options?: olx.layer.VectorOptions); + /** + * Return the associated {@link ol.source.Vector vectorsource} of the layer. + * @return {ol.source.Vector} Source. + * @api stable + */ + getSource(): ol.source.Vector; + /** * Get the style for features. This returns whatever was passed to the `style` * option at construction or to the `setStyle` method.