A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.google.com/android/reference/com/google/android/gms/maps/model/UrlTileProvider below:

UrlTileProvider | Google Play services

UrlTileProvider

Stay organized with collections Save and categorize content based on your preferences.

A partial implementation of TileProvider that only requires a URL that points to an image to be provided.

Note that this class requires that all the images have the same dimensions.

Inherited Field Summary Public Constructor Summary Public Method Summary final Tile getTile

(int x, int y, int zoom)

Returns the

Tile

to be used for this tile coordinate.

abstract URL getTileUrl

(int x, int y, int zoom)

Returns a

URL

that points to the image to be used for this tile.

Inherited Method Summary From class java.lang.Object Object

clone()

boolean void

finalize()

final Class<?>

getClass()

int

hashCode()

final void

notify()

final void

notifyAll()

String

toString()

final void

wait(long arg0, int arg1)

final void

wait(long arg0)

final void

wait()

Public Constructors public UrlTileProvider (int width, int height)

Constructs a UrlTileProvider.

Parameters width width of the images used for tiles height height of the images used for tiles Public Methods public final Tile getTile (int x, int y, int zoom)

Returns the Tile to be used for this tile coordinate. The image tile loaded through getTileUrl(int, int, int).

Parameters x The x coordinate of the tile. This will be in the range [0, 2zoom - 1] inclusive. y The y coordinate of the tile. This will be in the range [0, 2zoom - 1] inclusive. zoom The zoom level of the tile. This will be in the range [ GoogleMap.getMinZoomLevel, GoogleMap.getMaxZoomLevel] inclusive. public abstract URL getTileUrl (int x, int y, int zoom)

Returns a URL that points to the image to be used for this tile. If no image is found on the initial request, further requests will be made with an exponential backoff. If you do not wish to provide an image for this tile coordinate, return null.

Parameters x The x coordinate of the tile. This will be in the range [0, 2zoom - 1] inclusive. y The y coordinate of the tile. This will be in the range [0, 2zoom - 1] inclusive. zoom The zoom level of the tile. This will be in the range [ GoogleMap.getMinZoomLevel, GoogleMap.getMaxZoomLevel] inclusive. Returns

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-10-31 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["`UrlTileProvider` is a partial implementation of `TileProvider` simplifying the process of using online images as map tiles."],["It requires all tile images to have the same dimensions, specified during construction."],["The core functionality lies in the `getTileUrl` method, which you must implement to provide the URL of the image for a given tile coordinate."],["`UrlTileProvider` handles the loading of the image tile based on the URL you provide."]]],["`UrlTileProvider` is a class requiring a URL to provide image tiles. It's constructed with image width and height. The `getTile` method retrieves the tile for specific coordinates (x, y, zoom), using the URL from `getTileUrl`. `getTileUrl` returns a URL for the tile image, or `null` if no image is available. All provided images must have identical dimensions. The `NO_TILE` constant indicates no tile for coordinates.\n"]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4