maptalks / issues

Repo of issues for webgl layers
2 stars 0 forks source link

地图缩放后,底图会变空白 #657

Closed fuzhenn closed 2 months ago

fuzhenn commented 3 months ago

报告人: polong, ii果子

如图所示 image

fuzhenn commented 2 months ago

这个问题是因为map的center设置了高度导致的,而TileLayer还没有完美适配指定相机的高度

const map = new maptalks.Map("map", {
        // 这里center指定了高度
        center: [121.0521, 23.847, 1469],
        zoom: 11,
        pitch: 60,
        zoomControl: true, // add zoom control
        scaleControl: true, // add scale control
        // overviewControl: true, // add overview control
        lights: {
          directional: {
            direction: [0.5, 0, -1],
            color: [1, 1, 1],
          },
        },
         baseLayer: worldTerrain,
      });