CanvasMap
Getting Started Tutorials 3D Reference

Class CMDefs

CMDefs
General definitions for CanvasMap

Enumerated Types

    CMTYPE_COORDINATES=1 - coordinates as lat/lon or easting/northing {Xs:[],Ys[],Zs[]}
    CMTYPE_COLOR=2 - an HTML color, typically rgb(...)
    CMTYPE_INTEGER=3
    CMTYPE_BOOLEAN=4
    CMTYPE_FLOAT=5
    CMTYPE_CSS_STYLE=6 - jjg - replace this with DATA_TYPE_COLOR and transparency as float 0 to 1?
    CMTYPE_ENUMERATED=7 - value is selected from an array of possible options
    CMTYPE_URL=8 - points to a resource
    CMTYPE_STRING=9 - standard text string
    CMTYPE_IMAGE=10 - JavaScript img object
    CMTYPE_FONT=11 - CSS font specification
    CMTYPE_BOUNDS=12 - bounds objects with XMin,YMin,XMax,YMax
    CMTYPE_BOOLEAN_ARRAY=13
    CMTYPE_VECTOR=14 - x,y and optional z value [x,y,z]
    CMTYPE_INDEXES=15 - array of options where the value is an index (jjg - faster than string comparisons for enumerated)
    CMTYPE_OBJECT=16 - array of options where the value is an index (jjg - faster than string comparisons for enumerated)
    CMTYPE_COLOR_ARRAY=17
    CMTYPE_FLOATING=18

    CMSTATUS_HIDDEN=0
    CMSTATUS_VISIBLE=1
    CMSTATUS_SELECTABLE=2
    CMSTATUS_EDITABLE=3

    CMLABEL_TOP_LEFT=0
    CMLABEL_TOP=1
    CMLABEL_TOP_RIGHT=2
    CMLABEL_RIGHT=3
    CMLABEL_BOTTOM_RIGHT=3
    CMLABEL_BOTTOM=4
    CMLABEL_BOTTOM_LEFT=5
    CMLABEL_LEFT=6

    CMMARK_CIRCLE=0
    CMMARK_TRIANGLE=1
    CMMARK_SQUARE=2
    CMMARK_STAR=3