AW: [Mapbender-users] GUI elements are not arranged in iframe

birger.heinss at vattenfall.de birger.heinss at vattenfall.de
Thu Oct 8 04:44:57 EDT 2009


Hello together,

Congratulations for finding the problems solution. If this works fine in any case this code change should be integrated in a official mapbender release. Does anybody know if this is scheduled?


Mit freundlichen Grüßen

Birger Heinß
Consultant
Net Information Solutions

Vattenfall Europe Information Services GmbH
Kopenhagener Str. 83-101
13158 Berlin

Tel. +49 30 60005 2619
Fax +49 30 60005 2609
Mobil +49 160 898 4440
birger.heinss at vattenfall.de
www.vattenfall.de/is

-----Ursprüngliche Nachricht-----
Von: mapbender_users-bounces at lists.osgeo.org [mailto:mapbender_users-bounces at lists.osgeo.org] Im Auftrag von Sebastian Krohn-Grimberghe
Gesendet: Donnerstag, 8. Oktober 2009 10:17
An: 'Mapbender User List'
Betreff: Re: [Mapbender-users] GUI elements are not arranged in iframe

Hello,

for everyone interested in the solution...

Sebastian wrote:
> The elements causing the problems are overview, highlight_POI and
> zoomCoords. When I deactivate these elements, all other elements are
> arranged correctly and do work in the iframe (except for printPDF
> which makes use of overview, and the tools/buttons of the measure element).

The problem seems to be caused by unnecessary uses of the javascript "parent" element. E.g. if you make the following changes in javascript/ovnf.php, the overview works fine, both when the gui is loaded inside an iframe or loaded directly in the browser:

parent.eventInitMap.register(function init_overview(){ ...
must be changed to:
eventInitMap.register(function init_overview(){ ...

By the use of the "parent" element the script tries to perform the function outside the iframe and of course this fails.


By removing unnecessary "parent" elements I could also get all other tools to work with my GUIs inside an iframe (and they also still work when I load the gui directly). More examples:

javascript/mod_highlightPOI.php -> function mod_highlightPOI_draw():
var $div = parent.$("<div id='" + mapObject.elementName ...
change to:
var $div = $("<div id='" + mapObject.elementName ...


javascript/mod_measure.php -> function mod_closePolygon(), function mod_rubber(),function mod_getArea():
By removing every "parent." within onmouseup, onmouseover und onmouseout in these function, the measure tools displayed inside the map are working.

Best regards,
Sebastian

--
Sebastian Krohn-Grimberghe
Entwicklung

IP SYSCON GmbH

Tiestestraße 16-18
D-30171 Hannover
Tel.: +49 (511)  85 03 03 - 0
Fax: +49 (511)  85 03 03 - 30
E-Mail: sebastian.krohn-grimberghe at ipsyscon.de
http://www.ipsyscon.de/

_______________________________________________
Mapbender_users mailing list
Mapbender_users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapbender_users
#======================================================================#
Vattenfall Europe Information Services GmbH, Hamburg, Amtsgericht Hamburg - HRB 86516
Vorsitzender des Aufsichtsrates: Dr. Stefan Keese
Geschäftsführer: Ernst Wudtke, Armin Fischer, Lennart Atternäs

---------------------------------------------------------------------------------
Diese E-Mail wurde digital signiert.
Sie koennen anhand der Signatur nachvollziehen, dass die E-Mail wirklich von 
Vattenfall stammt und dass deren Inhalt auf dem Transportweg nicht manipuliert 
wurde. Weitere Informationen ueber die eingesetzten Signaturen finden Sie auf 
unserer Website unter http://www.vattenfall.de/pki.
---------------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 6268 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/mapbender_users/attachments/20091008/2e6ddef5/smime.bin


More information about the Mapbender_users mailing list