Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

threeLayer与GeoJSONVectorTileLayer重合的部分在完全俯视的情况下看不见 #508

Open
Janexr opened this issue Aug 26, 2022 · 0 comments

Comments

@Janexr
Copy link

Janexr commented Aug 26, 2022

使用GeoJSONVectorTileLayer绘制道路面,使用threeLayer.toLine绘制线段,在完全俯视的情况下,线段和道路面重合的部分会看不见。
`const geo = new GeoJSONVectorTileLayer("geo", {
data: toWgs84(data)
});

geo.setStyle({
style: [
{
renderPlugin: {
dataConfig: {
type: "fill",
},
sceneConfig: null,
type: "fill",
},
symbol: {
polygonBloom: false,
polygonFill: "#999999",
polygonOpacity: 1,
polygonPatternFile: null,
},
}
]
});

const groupLayer = new GroupGLLayer("group", [geo]);
groupLayer.addTo(map);

const mesh = threeLayer.toLine(line, { interactive: false, altitude: 3, minZoom: 10, maxZoom: 20 }, material.clone());
threeLayer.addMesh(mesh);`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant