MapKit Mobile SDK

MMKModelStyle

class MMKModelStyle : NSObject

The style of the model.

Summary

Class methods

 init(scale: Float,
   unitType: MMKModelStyleUnitType,
 renderMode: MMKModelStyleRenderMode,
 variantName: String?)

Instance methods

init()

Properties

var scale: Float { get set }
Scale the model by this value

var unitTypeMMKModelStyleUnitType { get set }
Unit type of the model

var renderModeMMKModelStyleRenderMode { get set }
Defines should it be rendered with buildings from ground layer

var variantName: String? { get set }
Name of variant to render model with

Class methods

init(scale:unitType:renderMode:variantName:)

 init(scale: Float,
   unitType: MMKModelStyleUnitType,
 renderMode: MMKModelStyleRenderMode,
 variantName: String?)


Instance methods

init()

init()


Properties

scale

var scale: Float { get set }

Scale the model by this value.


unitType

var unitType: MMKModelStyleUnitType { get set }

Unit type of the model.


renderMode

var renderMode: MMKModelStyleRenderMode { get set }

Defines should it be rendered with buildings from ground layer.


variantName

var variantName: String? { get set }

Name of variant to render model with. See KHR_materials_variants gltf extension. This works only for glTF models.

Optional field, can be nil.