Change VectorLayers to OptionalLayers on xml files