buildLayers: now handles minX maxY