File

models/path.ts

Constructor

constructor(pathInfo: any)
Defined in models/path.ts:1

Properties

className
className: string
color
color: string
Default value: #3388ff
dashArray
dashArray: string
dashOffset
dashOffset: string
fill
fill: boolean
Default value: true
fillColor
fillColor: string
Default value: #3388ff
fillOpacity
fillOpacity: number
Default value: 0.2
fillRule
fillRule: string
Default value: evenodd
lineCap
lineCap: string
Default value: round
lineJoin
lineJoin: string
Default value: round
opacity
opacity: number
Default value: 1
stroke
stroke: boolean
Default value: true
weight
weight: number
Default value: 3
export class path {
    constructor(pathInfo: any) {
        if (pathInfo !== null) {
            for (var key in pathInfo) {
                if (pathInfo[key] !== undefined) {
                    this[key] = pathInfo[key];
                }
            }
        }
    }
    stroke: boolean = true;	//Whether to draw stroke along the path. Set it to false to disable borders on polygons or circles.
    color: string = '#3388ff';	//Stroke color
    weight: number = 3;	//Stroke width in pixels
    opacity: number = 1;	//Stroke opacity
    lineCap: string = 'round'; //	A string that defines shape to be used at the end of the stroke.
    lineJoin: string = 'round'; //A string that defines shape to be used at the corners of the stroke.
    dashArray: string = null;	//A string that defines the stroke dash pattern. Doesn't work on Canvas-powered layers in some old browsers.
    dashOffset: string = null;	//A string that defines the distance into the dash pattern to start the dash. Doesn't work on Canvas-powered layers in some old browsers.
    fill: boolean = true; //Whether to fill the path with color. Set it to false to disable filling on polygons or circles.
    fillColor: string = '#3388ff';	//Fill color. Defaults to the value of the color option
    fillOpacity: number = 0.2;	//	Fill opacity.
    fillRule: string = 'evenodd';	//	A string that defines how the inside of a shape is determined.
    //TODO renderer: Renderer; 		Use this specific instance of Renderer for this path. Takes precedence over the map's default renderer.
    className: string = null;	//null	Custom class name set on an element. Only for SVG renderer.
}

results matching ""

    No results matching ""