Gets or sets the stroke thickness of this drawing.
Namespace: MindFusion.Mapping
File: Drawing.js
JavaScript Copy Code |
---|
get strokeThickness() {} |
Number. The thickness in meters or pixels.
If the pixelThickness property is set to true, the value will be considered in pixels, otherwise in meters (the default). Thicknesses defined in meters will be scaled according to the current zoom factor, while thicknesses defined in pixels stays static.
The following code creates a new CanvasLayer with an id "Drawings" and adds Circle instances. The stroke thickness for the circles outlinings is in pixels. The Circle class extends Drawing:
JavaScript Copy Code |
---|
var m = MindFusion.Mapping; var points = [ var drawings = new m.CanvasLayer("Drawings"); var ids = ["Memorial", "Cathedral", "Museum", "Palace", "Cafe"]; // create markers and circles at the specified points |