public class

VectorTileFeatureCollection

extends FeatureCollection
java.lang.Object
   ↳ com.carto.geometry.FeatureCollection
     ↳ com.carto.geometry.VectorTileFeatureCollection

Class Overview

A collection of vector tile features.

Summary

Public Constructors
VectorTileFeatureCollection(VectorTileFeatureVector features)
Constructs a VectorTileFeatureCollection from a vector of vector tile features.
Public Methods
synchronized void delete()
VectorTileFeature getFeature(int index)
Returns the feature at the specified index.
[Expand]
Inherited Methods
From class com.carto.geometry.FeatureCollection
From class java.lang.Object

Public Constructors

public VectorTileFeatureCollection (VectorTileFeatureVector features)

Constructs a VectorTileFeatureCollection from a vector of vector tile features.

Parameters
features The features for the collection.

Public Methods

public synchronized void delete ()

public VectorTileFeature getFeature (int index)

Returns the feature at the specified index. Index must be between 0 and getFeatureCount (exclusive).

Parameters
index The index of the feature to get.
Returns
  • The feature at specified index.
Throws
IndexOutOfBoundsException If the index is out of range.