最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

deck.gl - translate for Tile3DLayer not working as expected - Stack Overflow

programmeradmin0浏览0评论

I have this function defined for a Tile3DLayer instance.

const onTilesetLoad = (tileset: Tileset3D) => {
    const {cartographicCenter, zoom} = tileset;
    tileset.modelMatrix =  new Matrix4().translate([0, 0, 300]);
    setInitialViewState({
      ...INITIAL_VIEW_STATE,
      longitude: cartographicCenter[0],
      latitude: cartographicCenter[1],
      zoom
    });

    if (updateAttributions) {
      updateAttributions(tileset.credits && tileset.credits.attributions);
    }
  };

As can be seen, I am having a translation for Z when tile loads. I can see change in position of data, but instead of change in height, I instead see change across other axis. I want to change along height only.

Why is it so?

发布评论

评论列表(0)

  1. 暂无评论