Gets or sets a value indicating whether stroke thickness is set in pixels.
Namespace: MindFusion.Mapping
File: Drawing.js
JavaScript Copy Code |
---|
get pixelThickness() {} |
Boolean. True if the stroke thickness is in pixels, otherwise false.
The following code creates a new CanvasLayer with an id "Drawings" and adds Circle instances to it. 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 |