Add a frameState property to ol.MapBrowserEvent

so that we will be able to retrieve the current center of the view2d from the
framestate in the dragpan interaction.
This commit is contained in:
Bruno Binet
2013-01-29 13:00:02 +01:00
parent d54864695d
commit 39cbba3eb7
2 changed files with 9 additions and 3 deletions

View File

@@ -542,6 +542,7 @@ ol.Map.prototype.handleControlsRemove_ = function(collectionEvent) {
* @param {ol.MapBrowserEvent} mapBrowserEvent The event to handle.
*/
ol.Map.prototype.handleMapBrowserEvent = function(mapBrowserEvent) {
mapBrowserEvent.frameState = this.frameState_;
var interactions = this.getInteractions();
var interactionsArray = /** @type {Array.<ol.interaction.Interaction>} */
(interactions.getArray());