MMKModel

@interface MMKModel : MMKPlacemarkPresentation

describes model presentation of PlacemarkMapObject

Summary

Instance methods

- (void)setDataWithGltfDataProvider:
            (nonnull id<MRTDataProviderWithId>)gltfDataProvider
                           callback:(nonnull MMKCallback)callback;

Sets gltf data provider

Properties

@property (nonatomic, assign, unsafe_unretained, readwrite, nonnull)
    MMKModelStyle *modelStyle;

The style properties (sclae, unitType, etc

Instance methods

setDataWithGltfDataProvider:callback:

- (void)setDataWithGltfDataProvider:
            (nonnull id<MRTDataProviderWithId>)gltfDataProvider
                           callback:(nonnull MMKCallback)callback;

Sets gltf data provider.

The class maintains a strong reference to the object in the 'gltfDataProvider' parameter until it (the class) is invalidated.

Parameters

onFinished

Called when the model is loaded.


Properties

modelStyle

@property (nonatomic, assign, unsafe_unretained, readwrite, nonnull)
    MMKModelStyle *modelStyle;

The style properties (sclae, unitType, etc.) of the model placemark. Note: The current style cannot be modified directly - you must reset it to apply changes.