Fixed WebGIS.clearLayers method.