[Mapbender-commits] r5727 - in trunk/mapbender: http/javascripts
http/plugins lib
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Mar 5 04:55:15 EST 2010
Author: mschulz
Date: 2010-03-05 04:55:14 -0500 (Fri, 05 Mar 2010)
New Revision: 5727
Modified:
trunk/mapbender/http/javascripts/mod_wfs_gazetteer_client.php
trunk/mapbender/http/plugins/mb_resultList_setVendorspecific.js
trunk/mapbender/lib/core.js
Log:
fix loading problem with wfs_gazetteer and mb_resultlist_setVendorspecific
Modified: trunk/mapbender/http/javascripts/mod_wfs_gazetteer_client.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_wfs_gazetteer_client.php 2010-03-05 08:43:24 UTC (rev 5726)
+++ trunk/mapbender/http/javascripts/mod_wfs_gazetteer_client.php 2010-03-05 09:55:14 UTC (rev 5727)
@@ -304,6 +304,7 @@
catch (exc) {
}
+ parent.Mapbender.events.gazetteerReady.trigger();
};
if (parent.Mapbender.events.init.done === true) {
Modified: trunk/mapbender/http/plugins/mb_resultList_setVendorspecific.js
===================================================================
--- trunk/mapbender/http/plugins/mb_resultList_setVendorspecific.js 2010-03-05 08:43:24 UTC (rev 5726)
+++ trunk/mapbender/http/plugins/mb_resultList_setVendorspecific.js 2010-03-05 09:55:14 UTC (rev 5727)
@@ -68,7 +68,6 @@
});
-
Mapbender.modules[options.target[1]].events.onWfsConfSelect.register(function(data){
currentFeatureTypeId = data.wfsConfId;
var key ="";
@@ -90,11 +89,14 @@
Mapbender.modules[options.target[1]].events.onFormReset.register(function(){
currentFeatureTypeId = null;
+ var me = Mapbender.modules[options.target[0]];
+ var map = Mapbender.modules[me.options.target[0]];
+ map.setMapRequest();
});
};
-Mapbender.events.init.register(function(){
+Mapbender.events.gazetteerReady.register(function(){
Mapbender.modules[options.id] = $.extend(new API(options), Mapbender.modules[options.id]);
mb_registerVendorSpecific("Mapbender.modules." +options.id + ".getParamater(currentWms, functionName)");
});
Modified: trunk/mapbender/lib/core.js
===================================================================
--- trunk/mapbender/lib/core.js 2010-03-05 08:43:24 UTC (rev 5726)
+++ trunk/mapbender/lib/core.js 2010-03-05 09:55:14 UTC (rev 5727)
@@ -37,7 +37,13 @@
*/
Mapbender.events.localize = new MapbenderEvent();
+/**
+ * Triggered when the Gazetteer is ready and all of it evenst have been initialised.
+ * Triggered by the gazetteer module.
+ */
+Mapbender.events.gazetteerReady = new MapbenderEvent();
+
Mapbender.events.init.register(function() {
// remove the splash screen, show the application
$("#loading_mapbender").remove();
@@ -54,8 +60,6 @@
});
-
-
//
//
// DEPRECATED, FOR BACKWARDS COMPATIBILITY
More information about the Mapbender_commits
mailing list