Interface IconSet
com.yandex.mapkit.map
public interface IconSet
A set of icons.
Methods
Method Detail
add
public void add (ImageProvider image)
Adds an image to the icon set.
The image provider's ID will be used as the icon ID. The image size is scaled using the formula "value = scaleFactor / 4". The same ID should be used as the image-url in the customized layer style.add
public void add (String id, ImageProvider image)
Adds the image with the given ID to the icon source.
The image size is scaled using the formula "value = scaleFactor / 4". The same ID should be used as the image-url in the customized layer style.isValid
public boolean isValid ()
Tells if this IconSet is valid or no.
Any other method (except for this one) called on an invalid IconSet 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.