ASP.NET Pack Programmer's Guide
Bubble Class
See Also
 





Represents a text decoration.

Namespace: MindFusion.Mapping
Package: Bubble.js

 Syntax

JavaScript  Copy Code

// class
Bubble.prototype = {}

 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.";
bubbles.decorations.add(bubble);

 Inheritance Hierarchy

MindFusion.Mapping.Bubble

 See Also

Bubble Members
MindFusion.Mapping Namespace