[Mapbender-commits] r3553 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Feb 17 05:23:18 EST 2009
Author: verenadiewald
Date: 2009-02-17 05:23:18 -0500 (Tue, 17 Feb 2009)
New Revision: 3553
Modified:
trunk/mapbender/http/javascripts/mod_wfs_gazetteer_client.php
trunk/mapbender/http/javascripts/requestGeometryConstructor.js
Log:
changed some functions to get valid mapframe1 without iframe
Modified: trunk/mapbender/http/javascripts/mod_wfs_gazetteer_client.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_wfs_gazetteer_client.php 2009-02-17 10:22:32 UTC (rev 3552)
+++ trunk/mapbender/http/javascripts/mod_wfs_gazetteer_client.php 2009-02-17 10:23:18 UTC (rev 3553)
@@ -280,8 +280,8 @@
el.onmousedown = null;
el.ondblclick = null;
el.onmousemove = null;
- parent.writeTag("mapframe1","measure_display","");
- parent.writeTag("mapframe1","measure_sub","");
+ parent.writeTag("","measure_display","");
+ parent.writeTag("","measure_sub","");
activeButton = null;
}
Modified: trunk/mapbender/http/javascripts/requestGeometryConstructor.js
===================================================================
--- trunk/mapbender/http/javascripts/requestGeometryConstructor.js 2009-02-17 10:22:32 UTC (rev 3552)
+++ trunk/mapbender/http/javascripts/requestGeometryConstructor.js 2009-02-17 10:23:18 UTC (rev 3553)
@@ -101,7 +101,8 @@
callback(that.geomTarget,queryGeom);
writeTag(that.geomTarget,"measuring","");
writeTag(that.geomTarget,"measure_display","");
- var el = window.frames[that.geomTarget].document;
+ var ind = getMapObjIndexByName("mapframe1");
+ var el = mb_mapObj[ind].getDomElement();
el.onmouseover = null;
el.onmousedown = null;
el.onmouseup = null;
@@ -185,7 +186,8 @@
if(queryGeom.count() == 2){
callback(that.geomTarget,queryGeom);
- var el = window.frames[that.geomTarget].document;
+ var ind = getMapObjIndexByName("mapframe1");
+ var el = mb_mapObj[ind].getDomElement();
el.onmouseover = null;
el.onmousedown = null;
el.onmouseup = null;
More information about the Mapbender_commits
mailing list