Redesign

From MapbenderWiki

Jump to: navigation, search
  • Uli Rothstein
  • Christoph Baudson
  • Melchior Moos


Contents

file system

Restructuring the file system

separated js-classes

  • /http/javascripts/map.php
    • /http/javascripts/mapbender.js (the old collection of functions)
    • /http/jsClasses/map.js (the mb_mapObj)
    • /http/jsClasses/wms.js (formerly known as map_obj.js)
    • /http/jsClasses/point.js
    •  ???

wms-Object

  • json in createObjectFromDB

mb_mapObj

categories

  • mb_mapObj manipulation (consider the requirements of the sld workgroup Sld_integration)
  • registerFunctions
  • buttonhandling
  • ajax
  • exceptionhandling
  • miscellaneous

ToDos

  • handle commaseparated string mb_mapObj.layer and mb_mapObj.querylayer etc.
  • clone wms object (to json -> to string?)
  • separate request construction from mapframe functionality
  • separate request construction from featureInfo functionality
  • modify register functions


register functions mapObj/wms

  • mb_registerPreFunctions
    • javascripts/mod_dynamicOverview.php
    • javascripts/mod_scaleHint.php
  • mb_registerSubFunctions
    • javascript:
      • map.php:function mb_registerSubFunctions(stringFunction){
      • mod_back.php:mb_registerSubFunctions("mb_setHistoryObj(frameName)");
      • mod_back.php:mb_registerSubFunctions("mod_back_check(frameName)");
      • mod_copyright.php:mb_registerSubFunctions("mod_copyright()");
      • mod_dependentDiv.php:mb_registerSubFunctions("mod_dependentDiv()");
      • mod_dependentIframe.php:parent.mb_registerSubFunctions("mod_dependentIframe()");
      • mod_digitize_tab.php: parent.mb_registerSubFunctions("window.frames['" + mod_digitize_elName + "'].updateExtent()");
      • mod_digitize_tab.php: parent.mb_registerSubFunctions("window.frames['"+ mod_digitize_elName + "'].drawDashedLine()");
      • mod_digitize_tab.php: parent.mb_registerSubFunctions("window.frames['"+ mod_digitize_elName + "'].updateMeasureTag()");
      • mod_dragMapSize.php:mb_registerSubFunctions("mod_dragMapSize_arrange()");
      • mod_dynamicOverview.php:mb_registerSubFunctions("mod_dynamicOverviewSetVisibility(frameName)");
      • mod_featureInfoRedirect.php:mb_registerSubFunctions("mod_featureInfoRedirect_position()");
      • mod_forward.php:mb_registerSubFunctions("mod_forward_check(frameName)");
      • mod_highlightPOI.php:mb_registerSubFunctions('mod_highlightPOI_draw()');
      • mod_initWmc.php: mb_registerSubFunctions('addFlag()');
      • mod_legend.php:parent.mb_registerSubFunctions("window.frames['legend'].mod_legend_pos()");
      • mod_measure4326.php: mb_registerSubFunctions("drawDashedLine()");
      • mod_measure.php: mb_registerSubFunctions("drawDashedLine()");
      • mod_navFrame.php:mb_registerSubFunctions("mod_navFrame_arrange()");
      • mod_perimeter.php:mb_registerSubFunctions("mod_perimeter_draw()");
      • mod_permanentHighlight.js:mb_registerSubFunctions("mod_permanentHighlight_init()");
      • mod_sandclock2.php:mb_registerSubFunctions("mod_sandclock(true,myMapId)");
      • mod_sandclock.php:mb_registerSubFunctions("mod_sandclock(true,myMapId)");
      • mod_scalebar.php:mb_registerSubFunctions("mod_scalebar()");
      • mod_scaleSel.php:mb_registerSubFunctions("mod_scaleSelect_val(frameName)");
      • mod_setTimeout.php:mb_registerSubFunctions("mod_setTimeout_set()"); // maprequest
      • mod_treeConf.js:mb_registerSubFunctions("window.frames['treeConfGDE'].checkLayer()");
      • mod_usemap.php:mb_registerSubFunctions('mod_usemap_init()');
      • mod_wfs_SpatialRequest.php: mb_registerSubFunctions("drawDashedLineExt()");
      • wfs.js: mb_registerSubFunctions('mod_usemap("")');
      • wfs.js: mb_registerSubFunctions('highlight.paint()');
      • wfs.js: mb_registerSubFunctions("mb_setwfsrequest_extent()");
    • php:
      • mod_changeEPSG_dynamic.php: parent.mb_registerSubFunctions("window.frames['changeEPSG_dynamic'].mod_changeEPSG_setBox()");
      • mod_changeEPSG.php: parent.mb_registerSubFunctions("window.frames['changeEPSG'].mod_changeEPSG_setBox()");
      • mod_mapOV.php:parent.mb_registerSubFunctions("window.frames['overview'].mod_ov_showMapExtent()");
      • mod_meetingPoint.php:parent.mb_registerSubFunctions("window.frames['meetingPoint'].mod_meetingPoint_draw()");
  • FeatureInfoPreFunctions
  • mb_registerMapObjectSubFunctions
  • mb_registerGetScalePreFunctions
    • not in use
Personal tools