model maximumScale reached event


is there a possibility to get notified if a models maximumScale property is reached?

I'd like to replace a model with a billboard, when it exceeded a specific scale. Even better would be a event, which tells that the minimumPixelSize property is now active (the exact zoom point when the model would get smaller than minimumPixelSize).

Do I need to catch the camera events and check for all models on the map for the above criteria, or is there an easier solution?



While there isn’t an event you can subscribe to, you can try setting the distanceDisplayCondition for the model Entity. You should then be able to set the billboard’s minimum distanceDisplayCondition to the model’s maximum, and they will swap out when that distance is reached.

Thanks, hope that helps,