Stay organized with collections Save and categorize content based on your preferences.
An interface for a class that provides the tile images for a TileOverlay
. For information about the tile coordinate system, see TileOverlay
.
Calls to methods in this interface might be made from multiple threads so implementations of this interface must be threadsafe.
Field Summary public static final Tile NO_TILE Stub tile that is used to indicate that no tile exists for a specific tile coordinate. Public Method Summary abstract Tile getTile(int x, int y, int zoom)
Returns the tile to be used for this tile coordinate.
Fields public static final Tile NO_TILEStub tile that is used to indicate that no tile exists for a specific tile coordinate.
Public Methods public abstract Tile getTile (int x, int y, int zoom)Returns the tile to be used for this tile coordinate.
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
Tile
to be used for this tile coordinate. If you do not wish to provide a tile for this tile coordinate, return NO_TILE
. If the tile could not be found at this point in time, return null
and further requests might be made with an exponential backoff.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."],[[["`TileProvider` is an interface for classes that provide tile images for a `TileOverlay` on a map."],["Implementations of this interface must be thread-safe as methods might be called from multiple threads."],["The `getTile` method is used to retrieve the tile image for a specific coordinate and zoom level."],["A special tile, `NO_TILE`, is provided to indicate that no tile exists for a given coordinate."],["If a tile cannot be provided immediately, `null` can be returned, and the provider may be queried again later."]]],["The `TileProvider` interface supplies tile images for a `TileOverlay`. Implementations must be thread-safe as method calls can occur from multiple threads. Key actions involve using the `getTile(int x, int y, int zoom)` method to retrieve a tile for a given coordinate, with 'x', 'y', and 'zoom' defining the tile's location. `NO_TILE` is a placeholder when no tile exists. `null` means tile is currently not found. `UrlTileProvider` is a subclass requiring a URL for the image.\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