YMKModel

class YMKModel : YMKPlacemarkPresentation

describes model presentation of PlacemarkMapObject

Summary

Instance methods

func setDataWithGltfDataProvider(_ gltfDataProvider: any YRTDataProviderWithId)
Sets glTF data provider

func setDataWithGltfDataProvider(_ gltfDataProvider: any YRTDataProviderWithId,
                                           callback: YMKCallback? = nil)
Sets glTF data provider

Properties

var modelStyleYMKModelStyle { get set }
The style properties (scale, unitType, etc

Instance methods

setDataWithGltfDataProvider(_:)

func setDataWithGltfDataProvider(_ gltfDataProvider: any YRTDataProviderWithId)

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.


setDataWithGltfDataProvider(_:callback:)

func setDataWithGltfDataProvider(_ gltfDataProvider: any YRTDataProviderWithId,
                                           callback: YMKCallback? = nil)

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: YMKModelStyle { get set }

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