API Reference > frontend-devTools > Tools > MapLayerVisibilityTool > run run Method This method runs the tool, setting the visibility of a map layer. run(layerIndex: number, enable?: boolean): boolean Parameter Type Description layerIndex number the index of the layer to change enable boolean Returns - boolean Defined in frontend-devtools/src/tools/MapLayerTool.ts Line 212 Last Updated: 12 June, 2024