function removeInputLayer(layerId) {

	// Remove table row
	$(`#inputLayer_${layerId}`).remove();

	// Remove map layer
	const inputLayer = inputLayers[layerId];
	const mapLayer = inputLayer.mapLayer;
	if (mapLayer) {
		map.removeLayer(mapLayer);
	}
	
	// Delete layer reference
	delete inputLayers[layerId];
}
/**
 * Remove specified input layer
 *
 * @param {*} layerId - the layer identifier
 */
Remove specified input layer
@param {*} layerId - the layer identifier
Remove specified input layer @param { * } layerId - the layer identifier
function removeInputLayer(layerId) {
	$(`#inputLayer_${layerId}`).remove();
	const inputLayer = inputLayers[layerId];
	const mapLayer = inputLayer.mapLayer;
	if (mapLayer) {
		map.removeLayer(mapLayer);
	}
	delete inputLayers[layerId];
}
function removeInputLayer ( layerId ) { $ ( ` ${ layerId } ` ) . remove ( ) ; const inputLayer = inputLayers [ layerId ] ; const mapLayer = inputLayer . mapLayer ; if ( mapLayer ) { map . removeLayer ( mapLayer ) ; } delete inputLayers [ layerId ] ; }
Remove specified input layer
 @param {*} layerId - the layer identifier
Remove specified input layer @param { * } layerId - the layer identifier
// Remove table row // Remove map layer // Delete layer reference