ASP.NET Pack Programmer's Guide
Bubble.text Property
See Also
 





Gets or sets the text of this Bubble.

Namespace: MindFusion.Mapping
Package: Bubble.js

 Syntax

JavaScript  Copy Code

Object.defineProperty(Bubble.prototype, "text", { value: String });

 Property Value

String. The text.

 Example

The following code creates a new DecorationLayer for Bubble instances and adds to it a new Bubble:

JavaScript  Copy Code

var m = MindFusion.Mapping;

// add a decoration layer for info bubbles
var bubbles = new m.DecorationLayer("Info bubbles");
bubbles.visible = false;
view.layers.add(bubbles);

// create some bubbles showing an HTML string
var bubble = new m.Bubble(new m.LatLong(-22.951916, -43.210487));
bubble.text = "<p>Christ the Redeemer</p>The statue weighs 635 metric tons (625 long, 700 short tons), </br> and is located at the peak of the 700-metre (2,300 ft) Corcovado mountain </br> in the Tijuca Forest National Park overlooking the city of Rio de Janeiro. </br> A symbol of Christianity across the world, the statue has also become a cultural icon </br> of both Rio de Janeiro and Brazil, and is listed as one of the New 7 Wonders of the World.";
bubble.multiline = true;
bubbles.decorations.add(bubble);

 See Also

Bubble Members
Bubble Class
MindFusion.Mapping Namespace