Skip to content
TREN
Atlıhan Harita

LCC for Web User Manual · API Reference

LCCObject::setOriginPosition

Chapter 06.32 / 07Manual version v0.6.4English

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()

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