目录

public  interface TileProvider

Provides tile images for TileOverlay. The method in this API may be called from multiple threads. Therefore, you must ensure the threadsafe when implementing this API.

Public Fields

NameTypeDescription
NO_TILEpublic static final TileSpecial tile used to indicate that no tile is available at the specified coordinates.

Constructor

None.

Public Method Summary

Return typeMethod name
abstract TilegetTile(int x, int y, int zoom)

Public Methods

Method
public abstract Tile getTile(int x, int y, int zoom)
Obtains a Tile object with the specified coordinates and zoom level.


Parameters:

Parameter nameParameter desc
xX coordinate of a tile. The value ranges from 0 to 2zoom minus 1.
yY coordinate of a tile. The value ranges from 0 to 2zoom minus 1.
zoomZoom level of a tile. To obtain the value range, call the getMinZoomLevel() and getMaxZoomLevel() methods in the HuaweiMap class.


Return:

Return typeParameter desc
TileTile object with the specified coordinates and zoom level.