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.

ConflictResolutionMode getModeAgainstLabels()

Determines how features of the sublayer participates in label conflict resolution.

ConflictResolutionMode getModeAgainstPlacemarks()

Determines how features of the sublayer participates in placemark conflict resolution.

boolean isValid()

Tells if this Sublayer is valid or no.

void setFeatureType(@NonNull SublayerFeatureType featureType)
void setLayerId(@NonNull String layerId)
void setModeAgainstLabels(@NonNull ConflictResolutionMode modeAgainstLabels)
void setModeAgainstPlacemarks(@NonNull ConflictResolutionMode modeAgainstPlacemarks)

Method Detail

getFeatureType

public SublayerFeatureType getFeatureType ()

Describes the type of features stored in this sublayer.

getFilter

public SublayerFeatureFilter getFilter ()

Sublayer filter.

The 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 | | advertPins | | | + | | advert pins on the route | | 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 |

getModeAgainstLabels

public ConflictResolutionMode getModeAgainstLabels ()

Determines how features of the sublayer participates in label conflict resolution.

getModeAgainstPlacemarks

public ConflictResolutionMode getModeAgainstPlacemarks ()

Determines how features of the sublayer participates in placemark conflict resolution.

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)

setModeAgainstLabels

public void setModeAgainstLabels (@NonNull ConflictResolutionMode modeAgainstLabels)

setModeAgainstPlacemarks

public void setModeAgainstPlacemarks (@NonNull ConflictResolutionMode modeAgainstPlacemarks)