addPowerLayer

Adds one of the power layers.

Equivalent to addWeatherLayer(LayerCode.POWER_LINES, …) and the other power codes; kept for callers that use PowerLayerCode. Mirrors MapController.addRasterLayer.

mapController.addPowerLayer(PowerLayerCode.POWER_LINES)

All five share one source, so adding several is safe — addSource returns the existing source when it is already registered.

Return

The new TileLayer, or null if it could not be added.

Parameters

code

Which power product to add.

beforeId

Existing layer id to insert below; null appends on top.