webgis: fixed layers list detection.