adds autosizing and image loading listener

This commit is contained in:
Mike Adair
2012-06-22 10:52:58 -04:00
parent 675dd2b47e
commit 2163d54323
2 changed files with 66 additions and 12 deletions

View File

@@ -386,21 +386,19 @@ ol.Map.prototype.moveByPx = function(dx, dy) {
};
/**
* @param {ol.Loc} loc the location being requested
* @param {ol.geom.Point} 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};
return [200, 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_
};