Class TorqueTileLayer


public class TorqueTileLayer extends VectorTileLayer
A vector tile layer for rendering time-based animated point clouds.
  • Constructor Details

    • TorqueTileLayer

      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.
  • Method Details

    • countVisibleFeatures

      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.