修改
All checks were successful
Deploy / test (push) Successful in 3s

This commit is contained in:
nicomacbookpro 2025-06-18 14:23:56 +08:00
parent c7502c9cad
commit 7119006072

View File

@ -93,6 +93,7 @@ function animateTexture() {
} }
animateTexture() animateTexture()
function createGeo(geoJson) { function createGeo(geoJson) {
console.log(geoJson);
const group = new THREE.Group() const group = new THREE.Group()
group.info = geoJson group.info = geoJson
@ -168,6 +169,11 @@ function createGeo(geoJson) {
} }
}); });
} }
if (info.properties.adcode > 330000 && info.properties.adcode < 340000) {
console.log(info.properties.name);
}
const div = document.createElement('div') const div = document.createElement('div')
div.innerHTML = info.properties?.name div.innerHTML = info.properties?.name
div.style.color = '#dbdbdb' div.style.color = '#dbdbdb'