maptalks / maptalks/maptalks.three
threeLayer与GeoJSONVectorTileLayer重合的部分在完全俯视的情况下看不见
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 650
- Forks
- 138
- PR merge metrics
- No merged PRs in 30d
Description
使用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);`
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with GeoJSONVectorTileLayer, GroupGLLayer, threeLayer.toLine, and the shown altitude settings while viewing the map directly from above. Check the rendering behavior where the line overlaps the filled road surface; done means the overlapping line remains visible in the fully top-down view.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- three.js
- Domain
- computer-graphics, data-visualization
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100