Search
DecorationLayer.visible Property
See Also
 






Gets or sets the visibility of this DecorationLayer.

Namespace: MindFusion.Mapping
File: DecorationLayer.js

 Syntax

JavaScript  Copy Code

get visible() {}

 Property Value

Boolean. True if the layer is visible, otherwise false.

 Example

The following code creates a new Decorationlayer and makes it invisible:

JavaScript  Copy Code

var m = MindFusion.Mapping;

// create a new instance of the mapView
var view = new m.MapView(document.getElementById("mapView"));

var markers = new m.DecorationLayer("Images");
markers.id = 1;

// create some markers with images
var mark = new m.Marker(new m.LatLong(-22.951916, -43.210487));
mark.imageSrc = "./images/christ_redeemer.png";
mark.text = "Christ the Redeemer";
markers.decorations.add(mark);
markers.visible = false;
view.layers.add(markers);

 See Also