Class LayerOptions
Package com.yandex.mapkit.layers
java.lang.Object
↳ com.yandex.mapkit.layers.LayerOptions
final class LayerOptions implements Serializable
Options that are used when adding a layer to the map.
Summary
Constructors
|
Signature and Description |
|
LayerOptions(boolean active, |
|
LayerOptions() |
Methods
|
Type and modifiers |
Method and Description |
|
boolean |
getActive() |
|
setActive(boolean active) |
|
|
boolean |
getNightModeAvailable() |
|
setNightModeAvailable(boolean nightModeAvailable) |
|
|
boolean |
getCacheable() |
|
setCacheable(boolean cacheable) |
|
|
boolean |
getAnimateOnActivation() |
|
setAnimateOnActivation(boolean animateOnActivation) |
|
|
long |
getTileAppearingAnimationDuration() |
|
setTileAppearingAnimationDuration(long tileAppearingAnimationDuration) |
|
|
getOverzoomMode() |
|
|
setOverzoomMode(@NonNull OverzoomMode overzoomMode) |
|
|
boolean |
getTransparent() |
|
setTransparent(boolean transparent) |
|
|
boolean |
getVersionSupport() |
|
setVersionSupport(boolean versionSupport) |
|
|
void |
serialize(com.yandex.runtime.bindings.Archive archive) |
Constuctors
LayerOptions
|
LayerOptions(boolean active, |
LayerOptions
|
LayerOptions() |
Use constructor with parameters in your code.
This one is for bindings only!
Methods
getActive
|
boolean getActive() |
Inactive layers are not displayed on the map and do not request any tiles from TileProvider.
setActive
|
LayerOptions setActive(boolean active) |
See #getActive().
getNightModeAvailable
|
boolean getNightModeAvailable() |
Indicates the availability of night mode for this layer (for example, night mode is disabled for the satellite layer).
Default: true.
setNightModeAvailable
|
LayerOptions setNightModeAvailable(boolean nightModeAvailable) |
See #getNightModeAvailable().
getCacheable
|
boolean getCacheable() |
Determines whether tiles are cached on persistent storage or not.
setCacheable
|
LayerOptions setCacheable(boolean cacheable) |
See #getCacheable().
getAnimateOnActivation
|
boolean getAnimateOnActivation() |
Indicates whether layer activation/deactivation should be animated.
setAnimateOnActivation
|
LayerOptions setAnimateOnActivation(boolean animateOnActivation) |
See #getAnimateOnActivation().
getTileAppearingAnimationDuration
|
long getTileAppearingAnimationDuration() |
Specifies duration of tile appearing animation.
Can be set to 0 to disable animation. Default: 400 ms
setTileAppearingAnimationDuration
|
LayerOptions setTileAppearingAnimationDuration(long tileAppearingAnimationDuration) |
See #getTileAppearingAnimationDuration().
getOverzoomMode
|
@NonNull |
Whether to render tiles from adjacent zoom levels in place of absent or translucent tiles.
setOverzoomMode
|
LayerOptions setOverzoomMode(@NonNull OverzoomMode overzoomMode) |
See #getOverzoomMode().
getTransparent
|
boolean getTransparent() |
Set this flag if layer is transparent, that is parts of underlying layers can be seen through it.
This will disable some rendering optimizations that take advantage of layer opacity.
setTransparent
|
LayerOptions setTransparent(boolean transparent) |
See #getTransparent().
getVersionSupport
|
boolean getVersionSupport() |
Determines if layer supports versioning
setVersionSupport
|
LayerOptions setVersionSupport(boolean versionSupport) |
See #getVersionSupport().
serialize
|
@Override |