| java.lang.Object | |||||
| ↳ | com.carto.layers.Layer | ||||
| ↳ | com.carto.layers.TileLayer | ||||
| ↳ | com.carto.layers.VectorTileLayer | ||||
| ↳ | com.carto.layers.CartoVectorTileLayer | ||||
| ↳ | com.carto.layers.CartoOnlineVectorTileLayer | ||||
Specialized online vector tile layer that connects to Carto online tile server.
This layer is intended as a 'shortcut' to make using Carto online service and
vector tiles as simple as possible.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
CartoOnlineVectorTileLayer(CartoBaseMapStyle style)
Constructs a CartoOnlineVectorTileLayer object from a specificed base map style.
| |||||||||||
|
CartoOnlineVectorTileLayer(String source, CartoBaseMapStyle style)
Constructs a CartoOnlineVectorTileLayer object from a source name and specified base map style.
| |||||||||||
|
CartoOnlineVectorTileLayer(String source, AssetPackage styleAssetPackage)
Constructs a CartoOnlineVectorTileLayer object from a source name and style asset package.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| static TileDataSource |
createDataSource(CartoBaseMapStyle style)
Creates a data source for the specified base map style.
| ||||||||||
| synchronized void | delete() | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.carto.layers.CartoVectorTileLayer
| |||||||||||
From class
com.carto.layers.VectorTileLayer
| |||||||||||
From class
com.carto.layers.TileLayer
| |||||||||||
From class
com.carto.layers.Layer
| |||||||||||
From class
java.lang.Object
| |||||||||||
Constructs a CartoOnlineVectorTileLayer object from a specificed base map style.
| style | The style to use for the layer. |
|---|
Constructs a CartoOnlineVectorTileLayer object from a source name and specified base map style.
| source | The tile source name. For example "carto.streets". Note that only 'carto' sources can be used with this constructor. |
|---|---|
| style | The style to use for the layer. |
Constructs a CartoOnlineVectorTileLayer object from a source name and style asset package.
Style asset package defines visual style of the map and must be compatible with the source.
| source | The tile source name. For example "carto.streets". |
|---|---|
| styleAssetPackage | The style asset package (usually a zipped file or an asset) |
Creates a data source for the specified base map style.
| style | The style to use for the layer. |
|---|