Changed parameter type to be Array<Double> for scaleExtent and translate