mirror of https://gitee.com/antv-l7/antv-l7
fix: 修复栅格图片瓦片的混合问题 (#1316)
* fix: 修复 featureScale 错误 * style: lint style * fix: remove featureScalePlugin async * fix: 修复栅格图片瓦片的混合问题 Co-authored-by: shihui <yiqianyao.yqy@alibaba-inc.com>
This commit is contained in:
parent
9f2f834960
commit
7837021908
|
@ -19,6 +19,22 @@ export default () => {
|
|||
zIndex: 1,
|
||||
});
|
||||
layerTile.source(
|
||||
'//t3.tianditu.gov.cn/cva_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=cva&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=f1f2021a42d110057042177cd22d856f',
|
||||
// 'http://webst01.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}',
|
||||
{
|
||||
parser: {
|
||||
type: 'rasterTile',
|
||||
tileSize: 256,
|
||||
// zoomOffset: 0
|
||||
// zoomOffset: 1,
|
||||
},
|
||||
},
|
||||
);
|
||||
|
||||
const layerTile2 = new RasterLayer({
|
||||
zIndex: 0,
|
||||
});
|
||||
layerTile2.source(
|
||||
// '//t3.tianditu.gov.cn/cva_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=cva&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=f1f2021a42d110057042177cd22d856f',
|
||||
'http://webst01.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}',
|
||||
{
|
||||
|
@ -33,6 +49,7 @@ export default () => {
|
|||
|
||||
scene.on('loaded', () => {
|
||||
scene.addLayer(layerTile);
|
||||
scene.addLayer(layerTile2);
|
||||
});
|
||||
}, []);
|
||||
return (
|
||||
|
|
|
@ -77,7 +77,7 @@ export default class ImageModel extends BaseModel {
|
|||
primitive: gl.TRIANGLES,
|
||||
blend: {
|
||||
// Tip: 优化显示效果
|
||||
enable: false,
|
||||
enable: true,
|
||||
},
|
||||
depth: { enable: false },
|
||||
stencil: getMask(mask, maskInside),
|
||||
|
|
Loading…
Reference in New Issue