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.