Skip to content

Commit

Permalink
Override ol.layer.Vector#getSource() (DefinitelyTyped#11703)
Browse files Browse the repository at this point in the history
  • Loading branch information
stonio authored and mhegazy committed Oct 4, 2016
1 parent 18faea3 commit c55d26d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions openlayers/openlayers.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c55d26d

Please sign in to comment.