Template:Digitize Element vars

From MapbenderWiki

(Redirected from Digitize Element vars)
Jump to: navigation, search

Contents

buttons

The element vars contain all the button information: The following arrays exist:

  • buttonDig_id[i]: the id for a div-tag that will be created to contain the i-th button image. The digitizing module needs to identify buttons for the insertion of points, lines and polygons and basepoint movement, insertion and deletion. The following variables from mod_digitize_tab.php contain the ids of the corresponding buttons, if the button is available. If f.e. button i is the button for line insertion, buttonDig_id[i] = "Line":
    • button_point = "Point"
    • button_line = "Line"
    • button_polygon = "Polygon"
    • button_move = "dragBasePoint"
    • button_insert = "seBasePoint"
    • button_delete = "delBasePoint"
  • buttonDig_on[i]: if this is "0", the button will not be available for digitizing (default "1").
  • buttonDig_src[i]: the reference (path and filename) to the image that will be displayed if the i-th button is not pressed (must be named *_off.png, other images *_on.png and *_over.png).
  • buttonDig_imgdir: the path to the digitize images.
  • buttonDig_title_on[i]: the tooltip that will be displayed if the i-th button is pressed.
  • buttonDig_title_off[i]: the tooltip that will be displayed if the i-th button is not pressed.
  • buttonDig_x[i], buttonDig_y[i]: the position of the i-th button within the digitizing iframe.

buttons to remove and save/update/delete geometries (cannot be removed)

  • buttonDig_wfs_src: filename of the button's image (folder is specified in buttonDig_imgdir).
  • buttonDig_wfs_title: tooltip
  • buttonDig_remove_src: filename of the button's image (folder is specified in buttonDig_imgdir).
  • buttonDig_remove_title: tooltip

The position of the geometry list is set in

  • geomList_x
  • geomList_y

settings

the following settings need to be set in the element vars:

  • dotDistance: the distance between two dots that are part of a dash.
  • snappingTolerance: the radius of a circular area around each basepoint, that must not contain another basepoint.
  • snappingColor: the colour of a circular area around each basepoint, that must not contain another basepoint.
  • mod_digitize_elName: the name of the digitizing iframe
  • wfsCssUrl: url to the style sheet of the save/update/delete window.
  • cssUrl: url to the style sheet of the mapframe for digitizing.
  • linepointColor
  • mod_digitize_elName
  • closePolygon_title: the tooltip that appears over a basepoint of a polygon. Contains information on how to close the polygon.

SQL to add module 'gui_digitize'

SQL to add element_vars for module 'gui_digitize'

Personal tools