Template:Digitalisierung - Module - Display
From MapbenderWiki
(Redirected from Digitalisierung - Module - Display)
[edit]
display
[edit]
functions
- drawDashedLine(): displays all visible geometries of the geometry array. Returns a string containg the div tags. Invokes the function updateListOfGeometries().
- updateListOfGeometries(): updates the list of geometries after the geometry array. This function is invoked only at the end of drawDashedLines().
- evaluateDashes(start, end, i, j, k): this function calculates the line points between start and end vertices; i,j and k represent the indices of the adjacent basepoint in the geometry array. This information is needed when a linepoint is being converted to a basepoint.
- calculateDashes(p, q, width, height): calculates the visible part of the line defined by vertices p and q. width and height are referring to the size of the mapframe. Returns an array of two points or false, if the line is not visible in the current map.

