Class YMKIconSet

A set of icons, which can be used in custom geojson layers.

Instance Methods

- addWithAnimatedImage:

Adds the animated image to the icon set.

- addWithId:animatedImage:

Adds the animated image with the given ID to the icon source.

- addWithId:image:

Adds the image with the given ID to the icon source.

- addWithImage:

Adds the image to the icon set.

Properties

valid

Tells if this object is valid or no.

Method Detail

-addWithAnimatedImage:

- (void)addWithAnimatedImage:(nonnull id< YRTAnimatedImageProvider >)image 

Adds the animated 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 in geojson tiles.

-addWithId:animatedImage:

- (void)addWithId:(nonnull NSString *)id
    animatedImage:(nonnull id< YRTAnimatedImageProvider >)image 

Adds the animated 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 in geojson tiles.

-addWithId:image:

- (void)addWithId:(nonnull NSString *)id
            image:(nonnull UIImage *)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 in geojson tiles.

-addWithImage:

- (void)addWithImage:(nonnull UIImage *)image 

Adds the 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 in geojson tiles.

Property Detail

valid

(assign, readonly, getter=isValid) BOOL valid

Tells if this object is valid or no.

Any method called on an invalid object will throw an exception. The object 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.