ASP.NET Pack Programmer's Guide
Decoration.cssClass Property
See Also
 





Gets or sets the css class of this Decoration.

Namespace: MindFusion.Mapping
Package: Decoration.js

 Syntax

JavaScript  Copy Code

Object.defineProperty(Decoration.prototype, "cssClass", { value: String });

 Property Value

String. The name of the css class of the Decoration.

 Example

The following code creates a new DecorationLayer and adds a new Marker to the layer's decorations property. 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.cssClass = "marker_style";
mark.text = "Christ the Redeemer";
markers.decorations.add(mark);

 See Also

Decoration Members
Decoration Class
MindFusion.Mapping Namespace