Skip to main content

LCC for Web Manual · v0.6.3 · Page 40 of 68

LCCObject::setOriginPosition

Sets the origin position of the LCC model.

Sets an offset in the WGS84 Cartesian coordinate system, corresponding to getOriginPosition().

Version Requirement

SDK v0.3.1+

Engine Support

CesiumJS

API

LCCObject::setOriginPosition(offset: Cesium.Cartesian3): void

Parameters

ParameterTypeRequiredDefaultDescription
offsetCesium.Cartesian3Yes-Offset coordinates in WGS84 Cartesian coordinate system.

Return Value

void

Usage Example

const cartesian3 = Cesium.Cartesian3.fromDegrees(118.0592, 25.5429, 52);
lccObject.setOriginPosition(cartesian3);

Notes

  • This method must be called after the success callback of LCCRender.load() has been triggered.
  • LCCObject::getOriginPosition()
  • LCCObject::setRotation()
  • LCCObject::setScale()

XGRIDS documentation, reproduced as published and captured on October 27, 2026. Read this page on docs.xgrids.com

Stuck on a Step?

QRC supports every scanner and software seat it sells. Send us the page you are on and we will walk you through it.

Contact Us
Request a Quote