Interface Sublayer

com.yandex.mapkit.map

public interface Sublayer

Describes a collection of objects on the map that will be rendered together.

Methods

SublayerFeatureType getFeatureType()

Describes the type of features stored in this sublayer.

SublayerFeatureFilter getFilter()

Sublayer filter.

String getLayerId()

The sublayer is a part of the tiled layer or independent map object collection.

boolean isValid()

Tells if this Sublayer is valid or no.

void setFeatureType(@NonNull SublayerFeatureType featureType)
void setLayerId(@NonNull String layerId)

Method Detail

getFeatureType

public SublayerFeatureType getFeatureType ()

Describes the type of features stored in this sublayer.

getFilter

public SublayerFeatureFilter getFilter ()

Sublayer filter.

Default filter excludes nothing.

getLayerId

public String getLayerId ()

The sublayer is a part of the tiled layer or independent map object collection.

All features in the same sublayer are rendered together.All layers are listed in this table (G - Ground, M - Models, P - Placemarks, L - Labels):| layer name | G | M | P | L | description | ---------------------------------------------------------------------| | map | + | | + | + | main map layer | | personalizedPoi | + | | + | | personalized POI layer | | jams | + | | + | | traffic layer | | carparks | + | | + | | car park layer | | transport | | | + | | transport object collection | | searchPins | | | + | | search pins collection | | buildings | | + | | | buildings and models from all layers | | | | | | | (except textured models) | | mapObjects | + | + | + | | default map object layer | | userLocation | + | + | + | | user location layer | ---------------------------------------------------------------------| | user layer | + | | + | + | any new user layer | | collection | + | + | + | | any new map object layer |

isValid

public boolean isValid ()

Tells if this Sublayer is valid or no.

Any other method (except for this one) called on an invalid Sublayer will throw java.lang.RuntimeException. An instance becomes invalid only on UI thread, and only when its implementation depends on objects already destroyed by now. Please refer to general docs about the interface for details on its invalidation.

setFeatureType

public void setFeatureType (@NonNull SublayerFeatureType featureType)

setLayerId

public void setLayerId (@NonNull String layerId)