transform


mapsense.transform([a, b, c, d, e, f])
Constructs an affine transform with the 2x2 matrix whose entries are a, b, c, and d and the translation vector whose entries are e and f. If no arguments are specified, the transform is created with the 2x2 identity matrix (a=1, b=0, c=0, and d=1) and a zero-valued translation vector (e=0 and f=0). The newly constructed transform's zoom fraction is set to 0.
transform.zoomFraction([x])
Sets or gets the zoom fraction of this transform. If the argument x is specified, this method sets the zoom fraction to the value specified and returns this. If no arguments are specified, this method returns the current zoom fraction.
transform.apply(x)
Applies this transform to the given tile coordinates. The value x is an object with column, row, and zoom properties set.
transform.unapply(x)
Applies the inverse of this transform to the given tile coordinates. The value x is an object with column, row, and zoom properties set.
transform.toString()
Returns a string representation of this transform.