How to use the angular-cesium.CoordinateConverter.cartesian3ToLatLon function in angular-cesium

To help you get started, we’ve selected a few angular-cesium examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github articodeltd / angular-cesium / projects / demo / src / app / utils / services / dataProvider / mock-data-provider.service.ts View on Github external
getArrayBySize(entity, size: number) {
    const location = CoordinateConverter.cartesian3ToLatLon(entity.position);
    const arr = [
      {
        pos: Cesium.Cartesian3.fromDegrees(location.lon + 1, location.lat + 1, location.height),
        innerArray: [
          {
            pos: Cesium.Cartesian3.fromDegrees(location.lon + 1.5, location.lat + 1.5, location.height),
            id: '0'
          },
        ],
        id: '0'
      },
      {
        pos: Cesium.Cartesian3.fromDegrees(location.lon + 1, location.lat - 1, location.height),
        innerArray: [
          {
            pos: Cesium.Cartesian3.fromDegrees(location.lon + 1.5, location.lat - 1.5, location.height),