Eigenes Modul im Mapbender einbauen

Robert Neue Robert.Neue at gmx.de
Tue Aug 29 07:38:01 EDT 2006


-- 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:#B8C1C7;\' 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\' style=\'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', '');




More information about the Mapbender_dev mailing list