Skip to content
This repository has been archived by the owner on Apr 2, 2023. It is now read-only.

Commit

Permalink
Merge pull request #131 from moschlar/patch-openlayers-getannotations
Browse files Browse the repository at this point in the history
Implement getAnnotations for OpenLayers
  • Loading branch information
Rainer Simon committed Aug 17, 2015
2 parents 33074f8 + c79df72 commit 030b876
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mediatypes/openlayers/openlayers.viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,9 @@ annotorious.mediatypes.openlayers.Viewer.prototype.removeAnnotation = function(a
* @return {Array.<annotorious.Annotation>} the annotations
*/
annotorious.mediatypes.openlayers.Viewer.prototype.getAnnotations = function() {

return goog.array.map(this._overlays, function(overlay) {
return overlay.annotation;
});
}

/**
Expand Down

0 comments on commit 030b876

Please sign in to comment.