public class

TorqueTileLayer

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

Class Overview

A vector tile layer for rendering time-based animated point clouds.

Summary

Public Constructors
TorqueTileLayer(TileDataSource dataSource, TorqueTileDecoder decoder)
Constructs a new TorqueTileLayer object from a data source and decoder.
Public Methods
int countVisibleFeatures(int frameNr)
Counts and returns the number of visible features (points) at the specified frame.
synchronized void delete()
[Expand]
Inherited Methods
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 TorqueTileLayer (TileDataSource dataSource, TorqueTileDecoder decoder)

Constructs a new TorqueTileLayer object from a data source and decoder.

Parameters
dataSource The data source from which this layer loads data.
decoder The tile decoder to use.

Public Methods

public int countVisibleFeatures (int frameNr)

Counts and returns the number of visible features (points) at the specified frame.
Note that this number depends on the view settings and may depend on the state of tiles. If not all tiles are loaded, the results could be off.

Parameters
frameNr The frame number to use.
Returns
  • The number of visible feature at the specified frame. If the frame is missing, 0 is returned.

public synchronized void delete ()