Closed yzpopulation closed 6 years ago
应该是设置问题,请给个重现代码
var map = new maptalks.Map('map', {
center: [119.4079706689,32.3955292132],
zoom: 14,
minZoom: 1,
maxZoom: 18,
spatialReference: {
projection: 'EPSG:4326'
},
baseLayer: new maptalks.TileLayer('base', {
tileSystem: [1, -1, -180, 180],
renderer: 'canvas',
urlTemplate: 'http://t{s}.tianditu.com/DataServer?T=img_w&x={x}&y={y}&l={z}',
subdomains: ['1', '2', '3', '4', '5'],
attribution: '© <a target="_blank" href="http://www.tianditu.cn">Tianditu</a>'
}),
layers: [
new maptalks.TileLayer('road', {
urlTemplate: 'http://t{s}.tianditu.com/DataServer?T=ibo_w&x={x}&y={y}&l={z}',
subdomains: ['1', '2', '3', '4', '5'],
renderer: 'canvas',
opacity: 1
}),
new maptalks.TileLayer('road2', {
urlTemplate: 'http://t{s}.tianditu.com/DataServer?T=cia_w&x={x}&y={y}&l={z}',
subdomains: ['1', '2', '3', '4', '5'],
renderer: 'canvas',
opacity: 1
})
]
});
已经改成[1,-1,-180,180]了 @fuzhenn
天地图影像按照EPSG:4326加载坐标偏移很大?如何解决?