layers – Appearance – Visibility – Initially Visible

IntroductionAPI

Initially Visible

When the map is initialized make the layer invisible by default. When this box is un-checked the layer will not be initially visible.

This property is particularly useful for drilling to hide layers on-load.

Min Zoom / Max Zoom

API Compatibility Note: This feature is avaialble on CMaps Analytics JS API 3.5 and higher.

Define the zoom levels where a layer will be come visible. This is incredibly useful when you would like to display different geographic levels through interaction.

Zoom level cheat sheet:

Country = 1,3
Province (based on United States) = 4-7
City = 8-12
County= 13-15
Zipcode = 16-18
Street 19+

JS API

layersObjectsVisibility(value) → {Array}

Gets/Sets the visibility for each layer’s objects

Parameters:

NAME: value
TYPE: Array
DESCRIPTION:  2D array of Booleans where each child-level array represents a layer’s object’s visibility list.

Returns:

Type
Array