Location::colorNames - jcobban/Genealogy GitHub Wiki

Location::$colorNames

Up: class Location

When drawing a map of a location if a boundary is defined the default is to draw it as a Polygon bounded by a red (#FF0000) line. However some locations do not represent an area but rather a line. This is signalled by including a JSON object as the first item in the boundary string. This JSON object overrides the default:

    var polyOptionsShow = {strokeColor:     "red", 
                           strokeOpacity:   0.5,
                           strokeWeight:    2,
                           fillColor:       "black",
                           fillOpacity:     0.10};

For example if you wish to trace out the course of a river you could specify {"strokeColor" : "blue"}.

The application supports a small number of color names as alternatives to the normal Web definition strings consisting of a number/pound/hash sign followed by 6 hexadecimal digits.

color name code
'black' '#000000'
'aqua' '#00FFFF'
'blue' '#0000FF'
'brown' '#A52A2A'
'gray' '#808080'
'green' '#00FF00'
'magenta' '#FF00FF'
'orange' '#FFA500'
'purple' '#800080'
'red' '#FF0000'
'white' '#FFFFFF'
'yellow' '#FFFF00'

Next: class Marriage