From 89b3019cde57f560a93cfc1a26fbe3542724f49d Mon Sep 17 00:00:00 2001 From: Mike Adair Date: Fri, 22 Jun 2012 05:50:14 -0400 Subject: [PATCH] return correct map overlay elem --- src/ol/Map.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/ol/Map.js b/src/ol/Map.js index 2f58ca8138..c01b56a9c5 100644 --- a/src/ol/Map.js +++ b/src/ol/Map.js @@ -379,6 +379,25 @@ ol.Map.prototype.moveByPx = function(dx, dy) { // call moveByPx on renderers }; +/** + * @param {ol.Loc} loc the location being requested + * @returns {Object} the + */ +ol.Map.prototype.getViewportPosition = function(loc) { + //TODO: delegate this to the renderers + //stub for now to get popups working + return {x: 200, y: 300}; +}; + +/** + * @returns {Element} the map overlay element + */ +ol.Map.prototype.getMapOverlay = function() { + //TODO: delegate this to the renderers + //stub for now to get popups working + return this.mapOverlay_ +}; + /** * @export */