Skip to content

[Bug] Tile3DLayer: spatial distortions #9914

@skemaikin

Description

@skemaikin

Hi!
I have five points, which I used to create two tilesets. The first tileset contains only one tile, which contains all five points. The second tileset contains five tiles, each containing only one point (each point is contained in its own tile). The points in tiles are in the EPSG:4978 and use the RTC_CENTER tag.

When I display these two tilesets, the points don't overlap, even though they have the same coordinates. I've also noticed that the larger the spatial size of the tileset, the greater the distortion.

The problem can be reproduced in the playground. For example:

{
  "initialViewState": {
    "latitude": 50.2634,
    "longitude": 14.1672,
    "pitch": 0,
    "maxPitch": 60,
    "bearing": 0,
    "minZoom": 2,
    "maxZoom": 20,
    "zoom": 15
  },
  "views": [
    {
      "@@type": "MapView",
      "mapStyle": "https://tiles.basemaps.cartocdn.com/gl/voyager-gl-style/style.json",
      "controller": true
    }
  ],
  "layers": [
{
    "@@type": "Tile3DLayer",
    "id": "tileset-1",
    "pointSize": 5,
    "loader": "@@#Tiles3DLoader",
    "data": "http://localhost:3000/tileset1.json"
},
{
    "@@type": "Tile3DLayer",
    "id": "tileset-2",
    "pointSize": 5,
    "loader": "@@#Tiles3DLoader",
    "data": "http://localhost:3000/tileset2.json"
}
  ],
  "widgets": [
    {
      "@@type": "ZoomWidget"
    },
    {
      "@@type": "CompassWidget"
    }
  ]
}

The example contains a shp-file with reference points in the source folder. It also contains tilesets to demonstrate the problem.

Expected Behavior

Drawing tilesets without any distortions.

Steps to Reproduce

Publish tilesets from example to the http-server.
Put the code above in the playgroung.

Environment

  • Framework version: 8.x, 9.x
  • Browser: Firefox, Chrome, etc
  • OS: Ubuntu, Windows

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions