Gets or sets a value indicating whether the bubble's text can be on more than one line.
Namespace: MindFusion.Mapping
File: Bubble.js
Syntax
JavaScript
Copy Code
|
---|
get multiline() {}
|
Property Value
Boolean. true if the text can be on more than one line, otherwise false.
Example
The following code creates a new DecorationLayer for Bubble instances, adds to it a new Bubble whose text is rendered on multiple lines:
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