1 package org
.mozilla
.gecko
.gfx
;
3 import android
.content
.Context
;
4 import android
.graphics
.RectF
;
6 public class DynamicTileLayer
extends ComposedTileLayer
{
7 public DynamicTileLayer(Context context
) {
12 protected RectF
getViewPort(ImmutableViewportMetrics viewportMetrics
) {
13 RectF rect
= viewportMetrics
.getViewport();
14 return inflate(roundToTileSize(rect
, tileSize
), getInflateFactor());
18 protected float getZoom(ImmutableViewportMetrics viewportMetrics
) {
19 return viewportMetrics
.zoomFactor
;
23 protected int getTilePriority() {
27 private IntSize
getInflateFactor() {
28 return new IntSize(tileSize
.width
*2, tileSize
.height
*4);