scale method
Returns the scale used when transforming projected coordinates into pixel coordinates for a particular zoom.
For example, it returns 256 * 2^zoom
for Mercator-based CRS.
Implementation
@override
double? scale(double? zoom) {
return (256 * math.pow(2, zoom!)).toDouble();
}