Search
Decoration.id Property
See Also
 






Gets or sets the string identifier of this decoration.

Namespace: MindFusion.Mapping
File: Decoration.js

 Syntax

JavaScript  Copy Code

get id() {}

 Property Value

String. The string identificator.

 Example

The following code creates a new Marker and sets its id property, then adds it to the decorations of a DecorationLayer instance. The Marker class derives from Decoration.

JavaScript  Copy Code

var m = MindFusion.Mapping;

var markers = new m.DecorationLayer("Images");

// create some markers with images
var mark = new m.Marker(new m.LatLong(-22.951916, -43.210487));
mark.imageSrc = "./images/christ_redeemer.png";
mark.text = "Christ the Redeemer";
id = "12";
markers.decorations.add(mark);

 See Also