public class

CartoOnlineVectorTileLayer

extends CartoVectorTileLayer
java.lang.Object
   ↳ com.carto.layers.Layer
     ↳ com.carto.layers.TileLayer
       ↳ com.carto.layers.VectorTileLayer
         ↳ com.carto.layers.CartoVectorTileLayer
           ↳ com.carto.layers.CartoOnlineVectorTileLayer

Class Overview

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.

Summary

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

Public Constructors

public CartoOnlineVectorTileLayer (CartoBaseMapStyle style)

Constructs a CartoOnlineVectorTileLayer object from a specificed base map style.

Parameters
style The style to use for the layer.

public CartoOnlineVectorTileLayer (String source, CartoBaseMapStyle style)

Constructs a CartoOnlineVectorTileLayer object from a source name and specified base map style.

Parameters
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.

public CartoOnlineVectorTileLayer (String source, AssetPackage styleAssetPackage)

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.

Parameters
source The tile source name. For example "carto.streets".
styleAssetPackage The style asset package (usually a zipped file or an asset)

Public Methods

public static TileDataSource createDataSource (CartoBaseMapStyle style)

Creates a data source for the specified base map style.

Parameters
style The style to use for the layer.
Returns
  • The new vector tile decoder configured for the style.

public synchronized void delete ()