Gets the collection of bubbles, displayed by this DecorationLayer.
Namespace: MindFusion.Mapping
Package: DecorationLayer.js
Syntax
JavaScript
Copy Code
|
---|
Object.defineProperty(DecorationLayer.prototype, "bubbles", { value: ObservableCollection }); |
Property Value
Example
The following code creates a new DecorationLayer and adds a new Bubble instance to its bubbles property.
JavaScript
Copy Code
|
---|
// add a decoration layer for info bubbles var decorations = new m.DecorationLayer("Info bubbles"); decorations.visible = false; view.layers.add(decorations); // 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."; decorations.bubbles.add(bubble); |
See Also