public static TileGrid tileGridZoom ( TileGrid tileGrid , int fromZoom , int toZoom ) { TileGrid newTileGrid = null ; int zoomChange = toZoom - fromZoom ; if ( zoomChange > 0 ) { newTileGrid = tileGridZoomIncrease ( tileGrid , zoomChange ) ; } else if ( zoomChange < 0 ) { zoomChange = Math . abs ( zoomChange ) ; newTileGrid = tileGridZoomDecrease ( tileGrid , zoomChange ) ; } else { newTileGrid = tileGrid ; } return newTileGrid ; }
Get the tile grid starting from the tile grid and current zoom to the new zoom level