Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »

Sets the visibility for the specified layer name, for both polygon and marker layers.

Parameters:

  • layerName (string): The name of the layer to update

  • visible (boolean): If true, then show the layer; if false, then hide the layer

Returns: Nothing

Throws: Error in the console if a layer is not found with a name that matches layerName.

Code Sample

  • No labels