java.lang.Object | ||
↳ | com.carto.datasources.TileDataSource | |
↳ | com.carto.datasources.BitmapOverlayRasterTileDataSource |
Tile data source that uses given bitmap with two, three or four control points define a raster overlay.
Note: if two points are given, conformal transformation is calculated. If three points are given, affine transformation is calculated. In case of four points, perspective transformation is used.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
BitmapOverlayRasterTileDataSource(int minZoom, int maxZoom, Bitmap bitmap, Projection projection, MapPosVector mapPoses, ScreenPosVector bitmapPoses)
Constructs a new bitmap overlay data source.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
synchronized void | delete() | ||||||||||
MapBounds |
getDataExtent()
Returns the extent of the tiles in this data source.
| ||||||||||
TileData |
loadTile(MapTile mapTile)
Loads the specified tile.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Constructs a new bitmap overlay data source.
minZoom | The minimum zoom for generated tiles. |
---|---|
maxZoom | The maximum zoom for generated tiles. |
bitmap | The bitmap to use as an overlay. |
projection | The projection definining coordinate system of the control points. |
mapPoses | The geographical control points. The list must contain either 2, 3 or 4 points. |
bitmapPoses | The pixel coordinates in the bitmap corresponding to geographical control points. The number of coordinates must be equal to the number of control points in mapPoses list. |
IllegalArgumentException | If the transformation can not be calculated. |
---|
Returns the extent of the tiles in this data source.
The bounds are in coordinate system of the projection of the data source.
Loads the specified tile.
Note: the tile coordinate system used here is vertically flipped relative to layer tile coordinate system.
mapTile | The tile to load. |
---|