Mod highlight.php

From MapbenderWiki

Jump to: navigation, search

DEPRECATED, see geometry

Contents

List of Methods

class Canvas(mapframe, tagname)

A div-tag tagname within a mapframe that contains graphics from wz_graphics.js

variables

  • mapframe: the name of the mapframe that contains the div-tag.
  • tagname: the name of the div-tag.
  • diameter: the diameter of cicular highlights.
  • minWidth: if a geometry is too small (smaller than minWidth pixel), its highlight is a circle surrounding the geometry.
  • lineColor: the color of the highlighting.

clean()

cleans the canvas (empties the div-tag).

paint(geometryArray)

highlights the geometries of geometryArray (fills the div-tag).

all other functions are private and shall not be used.

class Highlight(mapframe_array, highlight_id)

variables

  • targets: an array of mapframes that contain the highlighted geometries (given by mapframe_array).
  • canvas: an array of canvases (one for each mapframe target).
  • tagname: a tagname for the geometries (simplification: instead of a single div-tag for each mapframe there could be a div-tag for each individual geometry!).
  • gA: a geometry array that contains all geometries that will be highlighted.

del(aGeometry)

deletes the geometry aGeometry from the geometry array.

add(aGeometry)

adds the geometry aGeometry to the geometry array and highlights all geometries.

all other functions are private and shall not be used.

addition: a new Highlight object overwrites an existing object with the same highlight_id. The highlight_id is part of the canvas tagname.

Views
Personal tools