[Mapbender-users] GUI elements are not arranged in iframe
Michael Schulz
mschulz at webgis.de
Thu Oct 8 05:01:14 EDT 2009
Hi,
yes, all modules are subsequently moved to support the new JavaScript
Api and module character. The used register functions are already
marked deprecated and will be replaced accordingly. This means each
module has to be revised and at least partially be rewritten, which is
still an ongoing effort at the moment.
Cheers, Michael
2009/10/8 <birger.heinss at vattenfall.de>:
> 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.
> ---------------------------------------------------------------------------------
>
> _______________________________________________
> Mapbender_users mailing list
> Mapbender_users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapbender_users
>
>
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Aufwind durch Wissen!
Qualifizierte Open Source Schulungen bei der
http://www.foss-akademie.de/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-----------------------------------------------------------
Michael Schulz
mschulz at webgis.de
in medias res
Gesellschaft für Informationstechnologie mbH
+++ Bitte beachten Sie unsere neue Adresse und Durchwahl +++
Schwimmbadstraße 2
D-79100 Freiburg i. Br.
Tel: +49 (0)761 705798-102
Tel: +49 (0)761 705798-0
Fax: +49 (0)761 705798-09
+++ Bitte beachten Sie unsere neue Adresse und Durchwahl +++
http://www.webgis.de / http://www.zopecms.de
--------------------------------------------------------------
Geschäftsführer: Stefan Giese, Dr. Christof Lindenbeck
Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg
More information about the Mapbender_users
mailing list