IsVisible: Boolean;
The IsVisible property determines whether the object is shown on a map.
Use JSON or the setIsVisible method to set the property value and the getIsVisible method to get the property value.
Available values:
true. Object is shown on a map (default).
false. Object is not shown on a map.
To execute the example HTML page must contain the object of the PP.MapShape type (see page of description of the MapShape.Visual) property named mapShape. Hide a map layer area and a tooltip for it:
function setVisibleForMapShape(mapShape, isVisible) {
// Hide a map layer area
mapShape.setIsVisible(isVisible);
if (isVisible) {
// Show a tooltip
mapShape.toggleTooltip();
} else {
// Hide a tooltip
mapShape.getToolTip().setIsVisible(isVisible);
}
}
setVisibleForMapShape(mapShape, false);
After executing the example, the map layer area with the RU-KYA ID and the tooltip for it were hidden:

See also: