[Mapbender-commits] r5877 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Apr 9 08:54:17 EDT 2010
Author: topi
Date: 2010-04-09 08:54:16 -0400 (Fri, 09 Apr 2010)
New Revision: 5877
Modified:
trunk/mapbender/http/javascripts/mod_legend.php
Log:
Legend ist drawn on mapbender init
Modified: trunk/mapbender/http/javascripts/mod_legend.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_legend.php 2010-04-08 08:57:38 UTC (rev 5876)
+++ trunk/mapbender/http/javascripts/mod_legend.php 2010-04-09 12:54:16 UTC (rev 5877)
@@ -85,6 +85,14 @@
checkobj.style.width = 0;
checkobj.style.height = 0;
}
+ if (parent.Mapbender.events.init.done) {
+ mod_legend_pos(mod_legend_target);
+ }
+ else {
+ parent.Mapbender.events.init.register(function () {
+ mod_legend_pos(mod_legend_target);
+ });
+ }
}
function mod_legend_repaint(obj){
More information about the Mapbender_commits
mailing list