[Mapbender-commits] r5146 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Sat Dec 12 02:38:48 EST 2009
Author: christoph
Date: 2009-12-12 02:38:47 -0500 (Sat, 12 Dec 2009)
New Revision: 5146
Modified:
trunk/mapbender/http/javascripts/map_obj.js
Log:
Modified: trunk/mapbender/http/javascripts/map_obj.js
===================================================================
--- trunk/mapbender/http/javascripts/map_obj.js 2009-12-12 07:37:59 UTC (rev 5145)
+++ trunk/mapbender/http/javascripts/map_obj.js 2009-12-12 07:38:47 UTC (rev 5146)
@@ -122,6 +122,11 @@
}
var domElement = this.getDomElement();
domElement.style.width = this.width;
+
+ this.events.dimensionsChanged.trigger({
+ width: this.width,
+ height: this.height
+ });
};
/**
@@ -155,6 +160,11 @@
}
var domElement = this.getDomElement();
domElement.style.height = this.height;
+
+ this.events.dimensionsChanged.trigger({
+ width: this.width,
+ height: this.height
+ });
};
this.getMousePosition = function (event) {
@@ -1541,7 +1551,11 @@
});
- this.afterMapRequest = new MapbenderEvent();
+ this.afterMapRequest = new Mapbender.Event();
+ this.events = {
+ afterMapRequest: this.afterMapRequest,
+ dimensionsChanged: new Mapbender.Event()
+ };
};
More information about the Mapbender_commits
mailing list