YMKModel
|
class YMKModel : YMKPlacemarkPresentation |
describes model presentation of PlacemarkMapObject
Summary
Instance methods
|
func setDataWithGltfDataProvider(_ gltfDataProvider: any YRTDataProviderWithId) |
|
func setDataWithGltfDataProvider(_ gltfDataProvider: any YRTDataProviderWithId, |
Properties
|
var modelStyle: YMKModelStyle { get set } |
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, |
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.