(bounds, tileSize = 512.0)
| 3121 | } |
| 3122 | |
| 3123 | _getResolution(bounds, tileSize = 512.0) { |
| 3124 | if (bounds.leftBottom && bounds.rightTop) { |
| 3125 | return Math.max(bounds.rightTop.x - bounds.leftBottom.x, bounds.rightTop.y - bounds.leftBottom.y) / tileSize; |
| 3126 | } |
| 3127 | return Math.max(bounds[2] - bounds[0], bounds[3] - bounds[1]) / tileSize; |
| 3128 | } |
| 3129 | |
| 3130 | _transformScaleToZoom(scale, crs, tileSize) { |
| 3131 | tileSize = tileSize || 512 |