[Mapbender-dev] Eigenes Modul im Mapbender einbauen

Uli Rothstein uli.rothstein at ccgis.de
Thu Aug 31 02:35:58 EDT 2006


Hallo,

das dreistufige Suchmodul hört sich ja interressant an... Um den Fehler genauer 
zu bestimmen, bitte mal im Firefox auf die js-Fehlermeldung klicken und die 
Umgebung des Fehlers in die Mail stopfen...
Wie wird die zoom-Funktion denn aufgerufen? Eigentlich wird das Mapframe (hier 
ja wahrscheinlich 'mapframe1') ja nur als String übergeben (also so ca.: zoom('
mapframe1', true, 2.0)). Oder wird die Funktion bereits bei der Initialisierung 
des Clients aufgerufen, so dass es ein Problem der Synchronisation sein könnte?

Viele Grüße
Uli Rothstein


Robert Neue schrieb:
> -- EN
> Hello List,
> 
> i'm dying for the new often discussed function of a multi level searchmodul. Therefore i have experimented with my own programmed modul 
> (specialized for 3 levels). The only problem i get is: i always like the idea of reuseability and therefore like to use the zoom function of javascripts/map.php. But when using this function i receive the following error inside the zoom function:
> 
> Error: mb_mapObj[ind] has no properties
> Quelldatei: http://localhost/mapbender2/javascripts/map.php?gui_id=test&&mb_myBBOX=
> Zeile: 568
> 
> The problem seems to be, that my modul is not known enough to mapbender.
> 
> -- DE 
> Hallo Liste,
> 
> ich warte schon seit längerem auf ein Multi-Level-Search Modul und habe mir daher ein für meine Situation passendes (3 Ebenen) Modul gebaut. Problem an der Geschichte ist, dass ich in Anlehnung an mod_zoomCoords die zoom function in javascripts/map.php aufrufen möchte (Wiederverwendung). Dies geschieht auch, jedoch erhalte ich in der Zoom Funktion folgenden Fehler:
> 
> Fehler: mb_mapObj[ind] has no properties
> Quelldatei: http://localhost/mapbender2/javascripts/map.php?gui_id=test&&mb_myBBOX=
> Zeile: 568
> 
> Ich vermute, dass ich dem System mein Modul noch nicht ausreichend bekannt gemacht habe.
> 
> Thanks in advance / Danke im Voraus.
> 
> 
> Mein System / my System:
> ------------------------
> Apache: 2.0.55
> MySQL:  4.1.15
> PHP:    5.0.5
> mapbender: Version 2.2.1
> Browser:   Firefox 1.5.0.6
> 
> SQL (mein Modul):
> ----
> INSERT INTO gui_element(fkey_gui_id, e_id, e_pos, e_public, e_comment, e_element, e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires) VALUES('test', 'zoomCoordsFromXML', '0002', '1', 'Coords von Xml aus zum zoomen einlesen\r\n', 'img', '../img/button_blink_red/add_filtered_list_off.png', 'onclick=\'window.open(\"../javascripts/mod_zoomCoordsFromXML.php?sessionID\",\"printWin\",\"width=500, height=600, left=300, resizable=yes, scrollbars=yes\")\' \r\nonmouseover=\'this.src = this.src.replace(/_off/,\"_over\");\' \r\nonmouseout=\'this.src = this.src.replace(/_over/, \"_off\");\'', '620', '60', '24', '24', '1', '', '', '', '', '', 'mapframe1', '');
> 
> 
> SQL (GUI)
> ---------
> -=Body=-
> INSERT INTO gui_element(fkey_gui_id, e_id, e_pos, e_public, e_comment, e_element, e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires) VALUES('test', 'body', '0001', '1', 'Body (obligatorisch)', 'body', '', 'bgcolor=\"#FFFFFF\" onload=\"init()\"', '0', '0', '', '', '', '', '', '', '', '', '', '');
> 
> -=featureInfo=-
> INSERT INTO gui_element(fkey_gui_id, e_id, e_pos, e_public, e_comment, e_element, e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires) VALUES('test', 'featureInfo1', '0002', '1', 'FeatureInfoRequest', 'img', '../img/button_blink_red/query_off.png', 'onmouseover = \"mb_regButton(\'init_featureInfo1\')\" title=\"Query\"', '465', '60', '24', '24', '1', '', '', '', 'mod_featureInfo.php', '', 'mapframe1', '');
> 
> -=mapframe=-
> INSERT INTO gui_element(fkey_gui_id, e_id, e_pos, e_public, e_comment, e_element, e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires) VALUES('test', 'mapframe1', '0002', '1', 'Frame für eine Karte', 'iframe', '../php/mod_map1.php?sessionID', 'scrolling=\"no\" frameborder=\'0\' ', '220', '105', '625', '400', '2', '', '', 'iframe', '', '', '', '');
> 
> -=navframe=-
> INSERT INTO gui_element(fkey_gui_id, e_id, e_pos, e_public, e_comment, e_element, e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires) VALUES('test', 'navFrame', '0002', '1', 'Navigation durch den Kartenrand', 'div', '', '', '0', '0', '', '', '10', 'font-size:1px;', '<div id=\'mbN\' style=\'position:absolute;width:0;height:0;top:0;left:0;background-color:#B8C1C7;\' onclick=\'mod_navFrame(\"N\")\'><img id=\'arrow_n\' style=\'position:relative;top:0;left:0\' src=\'../img/arrows/arrow_n.gif\' width=\'15\' height=\'10\'></div>\r\n<div id=\'mbNE\' style=\'position:absolute;width:0;height:0;top:0;left:0;background-color:#B8C1C7;\' onclick=\'mod_navFrame(\"NE\")\'><img id=\'arrow_ne\' style=\'position:relative;top:0;left:0\' src=\'../img/arrows/arrow_ne.gif\' width=\'10\' height=\'10\'></div>\r\n<div id=\'mbE\' style=\'position:absolute;width:0;height:0;top:0;left:0;background-color:#B8C
1C7;\' onclick=\'mod_navFrame(\"E\")\'><img id=\'arrow_e\' style=\'position:relative;top:0;left:0\' src=\'../img/arrows/arrow_e.gif\' width=\'10\' height=\'15\'></div>\r\n<div id=\'mbSE\' style=\'position:absolute;width:0;height:0;top:0;left:0;background-color:#B8C1C7;\' onclick=\'mod_navFrame(\"SE\")\'><img id=\'arrow_se\' style=\'position:relative;top:0;left:0\' src=\'../img/arrows/arrow_se.gif\' width=\'10\' height=\'10\'></div>\r\n<div id=\'mbS\' style=\'position:absolute;width:0;height:0;top:0;left:0;background-color:#B8C1C7;\' onclick=\'mod_navFrame(\"S\")\'><img id=\'arrow_s\' style=\'position:relative;top:0;left:0\' src=\'../img/arrows/arrow_s.gif\' width=\'15\' height=\'10\'></div>\r\n<div id=\'mbSW\' style=\'position:absolute;width:0;height:0;top:0;left:0;background-color:#B8C1C7;\' onclick=\'mod_navFrame(\"SW\")\'><img id=\'arrow_sw\' style=\'position:relative;top:0;left:0\' src=\'../img/arrows/arrow_sw.gif\' width=\'10\' height=\'10\'></div>\r\n<div id=\'mbW\' sty
le=\'position:absolute;width:0;height:0;top:0;left:0;background-color:#B8C1C7;\' onclick=\'mod_navFrame(\"W\")\'><img id=\'arrow_w\' style=\'position:relative;top:0;left:0\' src=\'../img/arrows/arrow_w.gif\' width=\'10\' height=\'15\'></div>\r\n<div id=\'mbNW\' style=\'position:absolute;width:0;height:0;top:0;left:0;background-color:#B8C1C7;\' onclick=\'mod_navFrame(\"NW\")\'><img id=\'arrow_nw\' style=\'position:relative;top:0;left:0\' src=\'../img/arrows/arrow_nw.gif\' width=\'10\' height=\'10\'></div>\r\n', 'div', 'mod_navFrame.php', '', 'mapframe1', '');
> 
> -=overview=-
> INSERT INTO gui_element(fkey_gui_id, e_id, e_pos, e_public, e_comment, e_element, e_src, e_attributes, e_left, e_top, e_width, e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod, e_target, e_requires) VALUES('test', 'overview', '0002', '1', 'Rahmen für den Overview', 'iframe', '../php/mod_mapOV.php?wms=0&sessionID', 'scrolling=\"no\" frameborder=\'0\' ', '15', '25', '150', '150', '2', '', '', 'iframe', '', 'mod_box1.js', 'mapframe1', '');
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe at mapbender.osgeo.org
> For additional commands, e-mail: dev-help at mapbender.osgeo.org
> 


-- 
--------------------------------
        Ulrich Rothstein
          CCGIS GbR
        Siemensstraße 8
         53121 Bonn
           GERMANY
--------------------------------

   uli.rothstein at ccgis.de
        www.ccgis.de
    www.mapbender.org
--------------------------------
Zentrale:  ++49 (0) 228 90826  0
Durchwahl: ++49 (0) 228 90826 17
Fax:       ++49 (0) 228 90826 11
--------------------------------




More information about the Mapbender_dev mailing list