models/path.ts
constructor(pathInfo: any)
|
Defined in models/path.ts:1
|
className |
className: |
Defined in models/path.ts:24
|
color |
color: |
Default value: #3388ff
|
Defined in models/path.ts:12
|
dashArray |
dashArray: |
Defined in models/path.ts:17
|
dashOffset |
dashOffset: |
Defined in models/path.ts:18
|
fill |
fill: |
Default value: true
|
Defined in models/path.ts:19
|
fillColor |
fillColor: |
Default value: #3388ff
|
Defined in models/path.ts:20
|
fillOpacity |
fillOpacity: |
Default value: 0.2
|
Defined in models/path.ts:21
|
fillRule |
fillRule: |
Default value: evenodd
|
Defined in models/path.ts:22
|
lineCap |
lineCap: |
Default value: round
|
Defined in models/path.ts:15
|
lineJoin |
lineJoin: |
Default value: round
|
Defined in models/path.ts:16
|
opacity |
opacity: |
Default value: 1
|
Defined in models/path.ts:14
|
stroke |
stroke: |
Default value: true
|
Defined in models/path.ts:11
|
weight |
weight: |
Default value: 3
|
Defined in models/path.ts:13
|
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.
}