Skip to content
TREN
Atlıhan Harita

LCC for Web User Manual · API Reference

LCCObject::setScale

Chapter 06.36 / 07Manual version v0.6.4English

Sets the scale of the LCC model.

Version Requirement

SDK v0.3.1+

Engine Support

CesiumJS

API

LCCObject::setScale(scale: { x: number, y: number, z: number } | number): void

Parameters

ParameterTypeRequiredDefaultDescription
scale{ x: number, y: number, z: number } / numberYes-Scale value. Before SDK v0.6.3, pass an object; from SDK v0.6.3+, only uniform scaling is supported with a single number.

Return Value

void

Usage Example

SDK v0.3.1 – v0.6.2

const scale = { x: 10, y: 10, z: 10 };
lccObject.setScale(scale);

SDK v0.6.3+ (Uniform Scaling)

Starting from v0.6.3, only uniform scaling is supported. The input parameter is a single scale factor, based on the ENU coordinate system.

lccObject.setScale(10);

Notes

  • This method must be called after the success callback of LCCRender.load() has been triggered.
  • SDK v0.6.3+ only supports uniform scaling (single number); independent axis scaling is no longer supported — please update to the new format.
  • LCCObject::setRotation()
  • LCCObject::setOriginPosition()

This chapter is from the official XGRIDS user manual. Official source (opens in a new tab) · Updated:

XGRIDS Türkiye

We're With You During Setup and in the Field

Atlıhan Harita provides training and technical support for device setup, firmware updates, software use, and field applications. Send us your question and our specialist will get back to you.

+90 216 546 0804