MMKModel

class MMKModel : MMKPlacemarkPresentation

describes model presentation of PlacemarkMapObject

Summary

Instance methods

func setDataWithGltfDataProvider(_ gltfDataProvider: any MRTDataProviderWithId,
                                           callback: @escaping MMKCallback)
Sets gltf data provider

Properties

var modelStyle: MMKModelStyle { get set }
The style properties (sclae, unitType, etc

Instance methods

setDataWithGltfDataProvider(_:callback:)

func setDataWithGltfDataProvider(_ gltfDataProvider: any MRTDataProviderWithId,
                                           callback: @escaping MMKCallback)

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

var modelStyle: MMKModelStyle { get set }

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.