@xingm/vmap-cesium-toolbar 0.0.1-beta.9 → 0.0.2-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/geojson/file-list.json +175 -0
- package/dist/geojson//344/270/207/345/267/236_/344/272/224/346/241/245/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//344/270/211/344/272/232_/345/207/244/345/207/260/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//344/270/211/346/230/216_/346/262/231/345/216/277/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//344/270/212/346/265/267_/346/265/246/344/270/234/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//344/270/212/346/265/267_/350/231/271/346/241/245/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//344/270/212/351/245/266_/344/270/211/346/270/205/345/261/261/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//344/270/224/346/234/253_/347/216/211/351/203/275/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//344/270/234/350/220/245/346/234/272/345/234/272.geojson +203 -0
- package/dist/geojson//344/270/255/345/215/253_/346/262/231/345/235/241/345/244/264/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//344/270/264/346/261/276_/344/271/224/346/235/216/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//344/270/264/346/262/202_/346/262/255/345/237/240/345/262/255/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//344/270/264/346/262/247_/345/215/232/345/260/232/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//344/270/271/344/270/234_/346/265/252/345/244/264/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//344/270/275/346/261/237_/344/270/211/344/271/211/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//344/271/211/344/271/214/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//344/271/214/345/205/260/345/257/237/345/270/203_/351/233/206/345/256/201/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//344/271/214/345/205/260/346/265/251/347/211/271_/344/276/235/345/213/222/345/212/233/347/211/271/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//344/271/214/346/265/267/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//344/271/214/351/262/201/346/234/250/351/275/220_/345/234/260/347/252/235/345/240/241/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//344/272/214/350/277/236/346/265/251/347/211/271_/350/265/233/344/271/214/347/264/240/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//344/272/225/345/206/210/345/261/261/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//344/274/212/345/256/201/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//344/274/212/346/230/245_/346/236/227/351/203/275/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//344/275/263/346/234/250/346/226/257/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//344/277/235/345/261/261/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/205/213/346/213/211/347/216/233/344/276/235/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/205/260/345/267/236_/344/270/255/345/267/235/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/205/264/344/271/211_/344/270/207/345/263/260/346/236/227/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/212/240/346/240/274/350/276/276/345/245/207_/345/230/216/344/273/231/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/214/205/345/244/264/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/214/227/344/272/254_/351/246/226/351/203/275/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/214/227/346/265/267_/347/246/217/346/210/220/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/215/201/345/240/260_/346/255/246/345/275/223/345/261/261/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/215/227/344/272/254_/347/246/204/345/217/243/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/215/227/345/256/201_/345/220/264/345/234/251/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/215/227/346/230/214_/346/230/214/345/214/227/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/215/227/351/200/232_/345/205/264/344/270/234/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/215/227/351/230/263_/345/247/234/350/220/245/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/215/232/344/271/220_/351/230/277/346/213/211/345/261/261/345/217/243/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/216/246/351/227/250_/351/253/230/345/264/216/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/217/260/345/267/236_/350/267/257/346/241/245/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/220/210/350/202/245_/346/226/260/346/241/245/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/220/220/351/262/201/347/225/252_/344/272/244/346/262/263/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/221/274/344/274/246/350/264/235/345/260/224_/346/265/267/346/213/211/345/260/224/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/221/274/345/222/214/346/265/251/347/211/271_/347/231/275/345/241/224/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/222/214/347/224/260/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/223/210/345/260/224/346/273/250_/345/244/252/345/271/263/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/224/220/345/261/261_/344/270/211/345/245/263/346/262/263/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/226/200/344/273/200/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/230/211/345/263/252/345/205/263/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/233/272/345/216/237_/345/205/255/347/233/230/345/261/261/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/241/224/345/237/216/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/244/247/345/220/214_/344/272/221/345/206/210/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/244/247/345/272/206_/350/220/250/345/260/224/345/233/276/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/244/247/350/277/236_/345/221/250/346/260/264/345/255/220/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/244/251/346/264/245_/346/273/250/346/265/267/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/244/252/345/216/237_/346/255/246/345/256/277/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/256/201/346/263/242_/346/240/216/347/244/276/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/256/201/350/222/227_/346/263/270/346/262/275/346/271/226/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/256/211/345/272/206/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/256/234/345/256/276_/350/217/234/345/235/235/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/256/234/346/230/214_/344/270/211/345/263/241/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/256/234/346/230/245_/346/230/216/346/234/210/345/261/261/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/257/214/350/225/264_/345/217/257/345/217/257/346/211/230/346/265/267/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/267/264/345/275/246/346/267/226/345/260/224_/345/244/251/345/220/211/346/263/260/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/270/203/345/260/224/346/264/245_/345/226/200/347/272/263/346/226/257/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/270/270/345/267/236_/345/245/224/347/211/233/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/270/270/345/276/267_/346/241/203/350/212/261/346/272/220/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/271/277/345/205/203_/347/233/230/351/276/231/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/271/277/345/267/236_/347/231/275/344/272/221/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/272/206/351/230/263_/350/245/277/345/263/260/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/272/223/350/275/246_/351/276/237/345/205/271/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/272/267/345/256/232/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/273/266/345/220/211_/346/234/235/351/230/263/345/267/235/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/274/240/345/256/266/347/225/214_/350/215/267/350/212/261/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/274/240/346/216/226_/347/224/230/345/267/236/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/276/220/345/267/236_/350/247/202/351/237/263/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/276/267/345/256/217_/350/212/222/345/270/202/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//345/277/273/345/267/236_/344/272/224/345/217/260/345/261/261/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//346/200/200/345/214/226_/350/212/267/346/261/237/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//346/201/251/346/226/275_/350/256/270/345/256/266/345/235/252/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//346/210/220/351/203/275_/345/217/214/346/265/201/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//346/211/216/345/205/260/345/261/257_/346/210/220/345/220/211/346/200/235/346/261/227/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//346/211/254/345/267/236_/346/263/260/345/267/236/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//346/212/232/350/277/234_/344/270/234/346/236/201/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//346/217/255/351/230/263_/346/275/256/346/261/225/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//346/224/200/346/236/235/350/212/261_/344/277/235/345/256/211/350/220/245/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//346/225/246/347/205/214/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//346/226/260/346/272/220_/351/202/243/346/213/211/346/217/220/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//346/227/245/347/205/247_/345/261/261/345/255/227/346/262/263/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//346/230/206/346/230/216_/351/225/277/346/260/264/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//346/231/256/346/264/261_/346/200/235/350/214/205/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//346/231/257/345/276/267/351/225/207_/347/275/227/345/256/266/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//346/234/235/351/230/263/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//346/235/255/345/267/236_/350/220/247/345/261/261/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//346/236/234/346/264/233_/347/216/233/346/262/201/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//346/237/263/345/267/236_/347/231/275/350/216/262/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//346/241/202/346/236/227_/344/270/244/346/261/237/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//346/242/205/345/216/277_/351/225/277/345/262/227/345/262/214/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//346/242/247/345/267/236/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//346/246/206/346/236/227_/346/246/206/351/230/263/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//346/255/246/346/261/211_/345/244/251/346/262/263/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//346/260/270/345/267/236_/351/233/266/351/231/265/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//346/261/211/344/270/255_/345/237/216/345/233/272/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//346/261/240/345/267/236_/344/271/235/345/215/216/345/261/261/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//346/262/210/351/230/263_/346/241/203/344/273/231/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//346/262/263/346/261/240_/351/207/221/345/237/216/346/261/237/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//346/263/211/345/267/236_/346/231/213/346/261/237/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//346/264/233/351/230/263/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//346/265/216/345/215/227_/351/201/245/345/242/231/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//346/265/216/345/256/201_/346/233/262/351/230/234/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//346/265/267/345/217/243_/347/276/216/345/205/260/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//346/265/267/350/245/277_/345/276/267/344/273/244/345/223/210/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//346/265/267/350/245/277_/350/212/261/345/234/237/346/262/237/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//346/267/256/345/256/211_/346/266/237/346/260/264/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//346/267/261/345/234/263_/345/256/235/345/256/211/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//346/270/251/345/267/236_/351/276/231/346/271/276/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//346/271/233/346/261/237/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//346/273/241/346/264/262/351/207/214_/350/245/277/351/203/212/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//346/274/240/346/262/263_/345/217/244/350/216/262/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//346/275/215/345/235/212/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//346/276/234/346/262/247_/346/231/257/350/277/210/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//347/203/237/345/217/260_/350/223/254/350/216/261/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//347/211/241/344/270/271/346/261/237_/346/265/267/346/265/252/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//347/216/211/346/240/221_/345/267/264/345/241/230/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//347/217/240/346/265/267_/351/207/221/346/271/276/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//347/220/274/346/265/267_/345/215/232/351/263/214/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//347/224/230/345/215/227_/345/244/217/346/262/263/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//347/231/275/345/237/216_/351/225/277/345/256/211/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//347/231/275/345/261/261_/351/225/277/347/231/275/345/261/261/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//347/231/276/350/211/262_/345/267/264/351/251/254/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//347/237/263/345/256/266/345/272/204_/346/255/243/345/256/232/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//347/237/263/346/262/263/345/255/220_/350/212/261/345/233/255/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//347/245/236/345/206/234/346/236/266_/347/272/242/345/235/252/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//347/246/217/345/267/236_/351/225/277/344/271/220/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//347/247/246/347/232/207/345/262/233_/345/214/227/346/210/264/346/262/263/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//347/250/273/345/237/216_/344/272/232/344/270/201/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//350/205/276/345/206/262_/351/251/274/345/263/260/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//350/220/245/345/217/243_/345/205/260/346/227/227/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//350/241/241/351/230/263_/345/215/227/345/262/263/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//350/241/242/345/267/236/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//350/245/204/351/230/263_/345/210/230/351/233/206/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//350/245/277/345/217/214/347/211/210/347/272/263_/345/230/216/346/264/222/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//350/245/277/345/256/201_/346/233/271/345/256/266/345/240/241/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//350/245/277/345/256/211_/345/222/270/351/230/263/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//350/245/277/346/230/214_/351/235/222/345/261/261/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//350/264/265/351/230/263_/351/276/231/346/264/236/345/240/241/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//350/265/243/345/267/236_/351/273/204/351/207/221/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//350/265/244/345/263/260_/347/216/211/351/276/231/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//350/276/276/345/267/236_/346/262/263/345/270/202/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//350/277/236/344/272/221/346/270/257_/347/231/275/345/241/224/345/237/240/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//351/200/232/345/214/226_/344/270/211/346/272/220/346/265/246/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//351/203/221/345/267/236_/346/226/260/351/203/221/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//351/204/202/345/260/224/345/244/232/346/226/257_/344/274/212/351/207/221/351/234/215/346/264/233/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//351/207/215/345/272/206_/346/261/237/345/214/227/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//351/207/221/346/230/214_/351/207/221/345/267/235/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//351/223/234/344/273/201_/345/207/244/345/207/260/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//351/223/266/345/267/235_/346/262/263/344/270/234/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//351/224/241/346/236/227/346/265/251/347/211/271/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//351/224/246/345/267/236_/351/224/246/345/267/236/346/271/276/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//351/225/277/346/230/245_/351/276/231/345/230/211/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//351/225/277/346/262/231_/351/273/204/350/212/261/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//351/230/277/345/205/213/350/213/217_/346/270/251/345/256/277/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//351/230/277/345/213/222/346/263/260/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//351/230/277/345/260/224/345/261/261_/344/274/212/345/260/224/346/226/275/346/234/272/345/234/272.geojson +206 -0
- package/dist/geojson//351/235/222/345/262/233_/346/265/201/344/272/255/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//351/236/215/345/261/261_/350/205/276/351/263/214/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//351/270/241/350/245/277_/345/205/264/345/207/257/346/271/226/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//351/273/204/345/261/261_/345/261/257/346/272/252/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//351/273/216/345/271/263/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//351/273/221/346/262/263_/347/221/267/347/217/262/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//351/273/224/346/261/237_/346/255/246/351/231/265/345/261/261/346/234/272/345/234/272.geojson +1 -0
- package/dist/geojson//351/275/220/351/275/220/345/223/210/345/260/224_/344/270/211/345/256/266/345/255/220/346/234/272/345/234/272.geojson +1 -0
- package/dist/hooks/toolBarConfig.d.ts +6 -17
- package/dist/hooks/useDrawHelper.d.ts +63 -0
- package/dist/hooks/useMap.d.ts +14 -0
- package/dist/hooks/useOverlayHelper.d.ts +173 -0
- package/dist/index.d.ts +6 -1
- package/dist/index.js +2681 -1525
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +124 -124
- package/dist/index.umd.js.map +1 -1
- package/dist/libs/{CesiumMapHelper.d.ts → CesiumMapDraw.d.ts} +33 -43
- package/dist/libs/CesiumMapLoader.d.ts +8 -2
- package/dist/libs/CesiumMapModel.d.ts +7 -2
- package/dist/libs/CesiumMapToolbar.d.ts +24 -71
- package/dist/libs/CesiumOverlayService.d.ts +111 -0
- package/dist/libs/{CesiumMapConfig.d.ts → config/CesiumMapConfig.d.ts} +3 -3
- package/dist/libs/drawHelper/BaseDraw.d.ts +116 -0
- package/dist/libs/drawHelper/DrawCircle.d.ts +25 -0
- package/dist/libs/drawHelper/DrawLine.d.ts +44 -0
- package/dist/libs/drawHelper/DrawPolgon.d.ts +24 -0
- package/dist/libs/drawHelper/DrawRectangle.d.ts +24 -0
- package/dist/libs/drawHelper/index.d.ts +5 -0
- package/dist/libs/overlay/MapCircle.d.ts +54 -0
- package/dist/libs/overlay/MapIcon.d.ts +55 -0
- package/dist/libs/overlay/MapInfoWindow.d.ts +73 -0
- package/dist/libs/overlay/MapLabel.d.ts +59 -0
- package/dist/libs/overlay/MapMarker.d.ts +46 -0
- package/dist/libs/overlay/MapPolygon.d.ts +49 -0
- package/dist/libs/overlay/MapPolyline.d.ts +46 -0
- package/dist/libs/overlay/MapRectangle.d.ts +44 -0
- package/dist/libs/overlay/MapSVG.d.ts +59 -0
- package/dist/libs/overlay/index.d.ts +20 -0
- package/dist/libs/overlay/types.d.ts +5 -0
- package/dist/libs/toolBar/CesiumMapController.d.ts +78 -0
- package/dist/libs/toolBar/MapLayersService.d.ts +66 -0
- package/dist/libs/toolBar/MapSearchService.d.ts +41 -0
- package/dist/libs/toolBar/MapToolBarConfig.d.ts +3 -0
- package/dist/libs/toolBar/MeasurementService.d.ts +16 -0
- package/dist/libs/toolBar/NotFlyZonesService.d.ts +46 -0
- package/dist/package.json +5 -5
- package/dist/utils/calc.d.ts +44 -0
- package/dist/utils/common.d.ts +1 -0
- package/package.json +5 -5
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Cartesian3 } from '../../../node_modules/cesium';
|
|
2
|
+
import { BaseDraw, DrawResult, DrawOptions } from './BaseDraw';
|
|
3
|
+
/**
|
|
4
|
+
* 画多边形绘制类
|
|
5
|
+
*/
|
|
6
|
+
export declare class DrawPolygon extends BaseDraw {
|
|
7
|
+
private currentPolygonEntity;
|
|
8
|
+
/**
|
|
9
|
+
* 开始绘制
|
|
10
|
+
*/
|
|
11
|
+
startDrawing(options?: DrawOptions): void;
|
|
12
|
+
/**
|
|
13
|
+
* 更新绘制实体(预览)
|
|
14
|
+
*/
|
|
15
|
+
updateDrawingEntity(previewPoint?: Cartesian3): void;
|
|
16
|
+
/**
|
|
17
|
+
* 完成绘制
|
|
18
|
+
*/
|
|
19
|
+
finishDrawing(): DrawResult | null;
|
|
20
|
+
/**
|
|
21
|
+
* 获取绘制类型
|
|
22
|
+
*/
|
|
23
|
+
getDrawType(): "line" | "polygon" | "rectangle" | "circle";
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Cartesian3 } from '../../../node_modules/cesium';
|
|
2
|
+
import { BaseDraw, DrawResult, DrawOptions } from './BaseDraw';
|
|
3
|
+
/**
|
|
4
|
+
* 画矩形绘制类
|
|
5
|
+
*/
|
|
6
|
+
export declare class DrawRectangle extends BaseDraw {
|
|
7
|
+
private currentRectangleEntity;
|
|
8
|
+
/**
|
|
9
|
+
* 开始绘制
|
|
10
|
+
*/
|
|
11
|
+
startDrawing(options?: DrawOptions): void;
|
|
12
|
+
/**
|
|
13
|
+
* 更新绘制实体(预览)
|
|
14
|
+
*/
|
|
15
|
+
updateDrawingEntity(previewPoint?: Cartesian3): void;
|
|
16
|
+
/**
|
|
17
|
+
* 完成绘制
|
|
18
|
+
*/
|
|
19
|
+
finishDrawing(): DrawResult | null;
|
|
20
|
+
/**
|
|
21
|
+
* 获取绘制类型
|
|
22
|
+
*/
|
|
23
|
+
getDrawType(): "line" | "polygon" | "rectangle" | "circle";
|
|
24
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { BaseDraw, type DrawResult, type DrawCallbacks, type DrawOptions } from './BaseDraw';
|
|
2
|
+
export { DrawLine } from './DrawLine';
|
|
3
|
+
export { DrawPolygon } from './DrawPolgon';
|
|
4
|
+
export { DrawRectangle } from './DrawRectangle';
|
|
5
|
+
export { DrawCircle } from './DrawCircle';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Viewer, Entity, Color, HeightReference } from '../../../node_modules/cesium';
|
|
2
|
+
import { OverlayPosition } from './types';
|
|
3
|
+
import * as Cesium from "cesium";
|
|
4
|
+
/**
|
|
5
|
+
* Circle 选项
|
|
6
|
+
*/
|
|
7
|
+
export interface CircleOptions {
|
|
8
|
+
position: OverlayPosition;
|
|
9
|
+
radius: number;
|
|
10
|
+
material?: Cesium.MaterialProperty | Color | string;
|
|
11
|
+
outline?: boolean;
|
|
12
|
+
outlineColor?: Color | string;
|
|
13
|
+
outlineWidth?: number;
|
|
14
|
+
heightReference?: HeightReference;
|
|
15
|
+
extrudedHeight?: number;
|
|
16
|
+
onClick?: (entity: Entity) => void;
|
|
17
|
+
id?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Circle 工具类
|
|
21
|
+
*/
|
|
22
|
+
export declare class MapCircle {
|
|
23
|
+
private viewer;
|
|
24
|
+
private entities;
|
|
25
|
+
constructor(viewer: Viewer);
|
|
26
|
+
/**
|
|
27
|
+
* 转换位置为 Cartesian3
|
|
28
|
+
*/
|
|
29
|
+
private convertPosition;
|
|
30
|
+
/**
|
|
31
|
+
* 转换颜色
|
|
32
|
+
*/
|
|
33
|
+
private resolveColor;
|
|
34
|
+
/**
|
|
35
|
+
* 解析材质
|
|
36
|
+
*/
|
|
37
|
+
private resolveMaterial;
|
|
38
|
+
/**
|
|
39
|
+
* 添加 Circle(圆形)
|
|
40
|
+
*/
|
|
41
|
+
add(options: CircleOptions): Entity;
|
|
42
|
+
/**
|
|
43
|
+
* 更新 Circle 位置
|
|
44
|
+
*/
|
|
45
|
+
updatePosition(entity: Entity, position: OverlayPosition): void;
|
|
46
|
+
/**
|
|
47
|
+
* 更新 Circle 半径
|
|
48
|
+
*/
|
|
49
|
+
updateRadius(entity: Entity, radius: number): void;
|
|
50
|
+
/**
|
|
51
|
+
* 更新 Circle 样式
|
|
52
|
+
*/
|
|
53
|
+
updateStyle(entity: Entity, options: Partial<Pick<CircleOptions, 'material' | 'outline' | 'outlineColor' | 'outlineWidth'>>): void;
|
|
54
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Viewer, Entity, Color, HeightReference, VerticalOrigin, HorizontalOrigin } from '../../../node_modules/cesium';
|
|
2
|
+
import { OverlayPosition } from './types';
|
|
3
|
+
import * as Cesium from "cesium";
|
|
4
|
+
/**
|
|
5
|
+
* Icon 选项
|
|
6
|
+
*/
|
|
7
|
+
export interface IconOptions {
|
|
8
|
+
position: OverlayPosition;
|
|
9
|
+
image: string;
|
|
10
|
+
width?: number;
|
|
11
|
+
height?: number;
|
|
12
|
+
scale?: number;
|
|
13
|
+
rotation?: number;
|
|
14
|
+
pixelOffset?: Cesium.Cartesian2;
|
|
15
|
+
eyeOffset?: Cesium.Cartesian3;
|
|
16
|
+
horizontalOrigin?: HorizontalOrigin;
|
|
17
|
+
verticalOrigin?: VerticalOrigin;
|
|
18
|
+
heightReference?: HeightReference;
|
|
19
|
+
disableDepthTestDistance?: number;
|
|
20
|
+
color?: Color | string;
|
|
21
|
+
onClick?: (entity: Entity) => void;
|
|
22
|
+
id?: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Icon 工具类
|
|
26
|
+
*/
|
|
27
|
+
export declare class MapIcon {
|
|
28
|
+
private viewer;
|
|
29
|
+
private entities;
|
|
30
|
+
constructor(viewer: Viewer);
|
|
31
|
+
/**
|
|
32
|
+
* 转换位置为 Cartesian3
|
|
33
|
+
*/
|
|
34
|
+
private convertPosition;
|
|
35
|
+
/**
|
|
36
|
+
* 转换颜色
|
|
37
|
+
*/
|
|
38
|
+
private resolveColor;
|
|
39
|
+
/**
|
|
40
|
+
* 添加 Icon(图标,使用 Billboard)
|
|
41
|
+
*/
|
|
42
|
+
add(options: IconOptions): Entity;
|
|
43
|
+
/**
|
|
44
|
+
* 更新 Icon 位置
|
|
45
|
+
*/
|
|
46
|
+
updatePosition(entity: Entity, position: OverlayPosition): void;
|
|
47
|
+
/**
|
|
48
|
+
* 更新 Icon 图片
|
|
49
|
+
*/
|
|
50
|
+
updateImage(entity: Entity, image: string): void;
|
|
51
|
+
/**
|
|
52
|
+
* 更新 Icon 样式
|
|
53
|
+
*/
|
|
54
|
+
updateStyle(entity: Entity, options: Partial<Pick<IconOptions, 'scale' | 'rotation' | 'color'>>): void;
|
|
55
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { Viewer, Entity } from '../../../node_modules/cesium';
|
|
2
|
+
import { OverlayPosition } from './types';
|
|
3
|
+
import * as Cesium from 'cesium';
|
|
4
|
+
export interface InfoWindowOptions {
|
|
5
|
+
position: OverlayPosition;
|
|
6
|
+
content: string | HTMLElement;
|
|
7
|
+
width?: number;
|
|
8
|
+
height?: number;
|
|
9
|
+
pixelOffset?: Cesium.Cartesian2;
|
|
10
|
+
show?: boolean;
|
|
11
|
+
onClick?: (entity: Entity) => void;
|
|
12
|
+
id?: string;
|
|
13
|
+
closable?: boolean;
|
|
14
|
+
onClose?: (entity: Entity) => void;
|
|
15
|
+
backgroundColor?: string;
|
|
16
|
+
color?: string;
|
|
17
|
+
font?: string;
|
|
18
|
+
hideWhenOutOfView?: boolean;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* 面向 Cesium 的 HTML 信息窗口管理器
|
|
22
|
+
* 要求 container 为 position: relative 的 DOM 容器(通常与 viewer.canvas 同级或包裹)
|
|
23
|
+
*/
|
|
24
|
+
export declare class MapInfoWindow {
|
|
25
|
+
private viewer;
|
|
26
|
+
private container;
|
|
27
|
+
private entityMap;
|
|
28
|
+
private currentTopZIndex;
|
|
29
|
+
constructor(viewer: Viewer, container: HTMLElement);
|
|
30
|
+
private convertPosition;
|
|
31
|
+
/**
|
|
32
|
+
* 将世界坐标转换为相对于 container 的 CSS 像素坐标
|
|
33
|
+
*/
|
|
34
|
+
private getContainerPixelPosition;
|
|
35
|
+
/**
|
|
36
|
+
* 更新单个 infoWindow 的显示状态和位置
|
|
37
|
+
*/
|
|
38
|
+
private updateDomPosition;
|
|
39
|
+
/**
|
|
40
|
+
* 创建 DOM 元素
|
|
41
|
+
*/
|
|
42
|
+
private createDomElement;
|
|
43
|
+
/**
|
|
44
|
+
* 将指定 InfoWindow 置于最前
|
|
45
|
+
*/
|
|
46
|
+
bringToFront(entity: Entity): void;
|
|
47
|
+
/**
|
|
48
|
+
* 添加信息窗口
|
|
49
|
+
*/
|
|
50
|
+
add(options: InfoWindowOptions): Entity;
|
|
51
|
+
/**
|
|
52
|
+
* 更新位置
|
|
53
|
+
*/
|
|
54
|
+
updatePosition(entity: Entity, position: OverlayPosition): void;
|
|
55
|
+
/**
|
|
56
|
+
* 更新内容
|
|
57
|
+
*/
|
|
58
|
+
updateContent(entity: Entity, content: string | HTMLElement): void;
|
|
59
|
+
/**
|
|
60
|
+
* 显示/隐藏
|
|
61
|
+
*/
|
|
62
|
+
setVisible(entity: Entity, visible: boolean): void;
|
|
63
|
+
show(entity: Entity): void;
|
|
64
|
+
hide(entity: Entity): void;
|
|
65
|
+
/**
|
|
66
|
+
* 移除信息窗口(清理 DOM + 监听器 + 实体)
|
|
67
|
+
*/
|
|
68
|
+
remove(entity: Entity): void;
|
|
69
|
+
/**
|
|
70
|
+
* 销毁整个管理器(清理所有 infoWindow)
|
|
71
|
+
*/
|
|
72
|
+
destroy(): void;
|
|
73
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Viewer, Entity, Color, HeightReference, LabelStyle, VerticalOrigin, HorizontalOrigin } from '../../../node_modules/cesium';
|
|
2
|
+
import { OverlayPosition } from './types';
|
|
3
|
+
import * as Cesium from "cesium";
|
|
4
|
+
/**
|
|
5
|
+
* Label 选项
|
|
6
|
+
*/
|
|
7
|
+
export interface LabelOptions {
|
|
8
|
+
position: OverlayPosition;
|
|
9
|
+
text: string;
|
|
10
|
+
font?: string;
|
|
11
|
+
fillColor?: Color | string;
|
|
12
|
+
outlineColor?: Color | string;
|
|
13
|
+
outlineWidth?: number;
|
|
14
|
+
style?: LabelStyle;
|
|
15
|
+
pixelOffset?: Cesium.Cartesian2;
|
|
16
|
+
eyeOffset?: Cesium.Cartesian3;
|
|
17
|
+
horizontalOrigin?: HorizontalOrigin;
|
|
18
|
+
verticalOrigin?: VerticalOrigin;
|
|
19
|
+
heightReference?: HeightReference;
|
|
20
|
+
scale?: number;
|
|
21
|
+
showBackground?: boolean;
|
|
22
|
+
backgroundColor?: Color | string;
|
|
23
|
+
backgroundPadding?: Cesium.Cartesian2;
|
|
24
|
+
disableDepthTestDistance?: number;
|
|
25
|
+
onClick?: (entity: Entity) => void;
|
|
26
|
+
id?: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Label 工具类
|
|
30
|
+
*/
|
|
31
|
+
export declare class MapLabel {
|
|
32
|
+
private viewer;
|
|
33
|
+
private entities;
|
|
34
|
+
constructor(viewer: Viewer);
|
|
35
|
+
/**
|
|
36
|
+
* 转换位置为 Cartesian3
|
|
37
|
+
*/
|
|
38
|
+
private convertPosition;
|
|
39
|
+
/**
|
|
40
|
+
* 转换颜色
|
|
41
|
+
*/
|
|
42
|
+
private resolveColor;
|
|
43
|
+
/**
|
|
44
|
+
* 添加 Label(文本标签)
|
|
45
|
+
*/
|
|
46
|
+
add(options: LabelOptions): Entity;
|
|
47
|
+
/**
|
|
48
|
+
* 更新 Label 位置
|
|
49
|
+
*/
|
|
50
|
+
updatePosition(entity: Entity, position: OverlayPosition): void;
|
|
51
|
+
/**
|
|
52
|
+
* 更新 Label 文本
|
|
53
|
+
*/
|
|
54
|
+
updateText(entity: Entity, text: string): void;
|
|
55
|
+
/**
|
|
56
|
+
* 更新 Label 样式
|
|
57
|
+
*/
|
|
58
|
+
updateStyle(entity: Entity, options: Partial<Pick<LabelOptions, 'fillColor' | 'outlineColor' | 'outlineWidth' | 'font' | 'scale'>>): void;
|
|
59
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Viewer, Entity, Color, HeightReference } from '../../../node_modules/cesium';
|
|
2
|
+
import { OverlayPosition } from './types';
|
|
3
|
+
import * as Cesium from "cesium";
|
|
4
|
+
/**
|
|
5
|
+
* Marker 选项
|
|
6
|
+
*/
|
|
7
|
+
export interface MarkerOptions {
|
|
8
|
+
position: OverlayPosition;
|
|
9
|
+
pixelSize?: number;
|
|
10
|
+
color?: Color | string;
|
|
11
|
+
outlineColor?: Color | string;
|
|
12
|
+
outlineWidth?: number;
|
|
13
|
+
heightReference?: HeightReference;
|
|
14
|
+
scaleByDistance?: Cesium.NearFarScalar;
|
|
15
|
+
disableDepthTestDistance?: number;
|
|
16
|
+
onClick?: (entity: Entity) => void;
|
|
17
|
+
id?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Marker 工具类
|
|
21
|
+
*/
|
|
22
|
+
export declare class MapMarker {
|
|
23
|
+
private viewer;
|
|
24
|
+
private entities;
|
|
25
|
+
constructor(viewer: Viewer);
|
|
26
|
+
/**
|
|
27
|
+
* 转换位置为 Cartesian3
|
|
28
|
+
*/
|
|
29
|
+
private convertPosition;
|
|
30
|
+
/**
|
|
31
|
+
* 转换颜色
|
|
32
|
+
*/
|
|
33
|
+
private resolveColor;
|
|
34
|
+
/**
|
|
35
|
+
* 添加 Marker(点标记)
|
|
36
|
+
*/
|
|
37
|
+
add(options: MarkerOptions): Entity;
|
|
38
|
+
/**
|
|
39
|
+
* 更新 Marker 位置
|
|
40
|
+
*/
|
|
41
|
+
updatePosition(entity: Entity, position: OverlayPosition): void;
|
|
42
|
+
/**
|
|
43
|
+
* 更新 Marker 样式
|
|
44
|
+
*/
|
|
45
|
+
updateStyle(entity: Entity, options: Partial<Pick<MarkerOptions, 'color' | 'outlineColor' | 'outlineWidth' | 'pixelSize'>>): void;
|
|
46
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Viewer, Entity, Color, HeightReference } from '../../../node_modules/cesium';
|
|
2
|
+
import { OverlayPosition } from './types';
|
|
3
|
+
import * as Cesium from "cesium";
|
|
4
|
+
/**
|
|
5
|
+
* Polygon 选项
|
|
6
|
+
*/
|
|
7
|
+
export interface PolygonOptions {
|
|
8
|
+
positions: OverlayPosition[];
|
|
9
|
+
material?: Cesium.MaterialProperty | Color | string;
|
|
10
|
+
outline?: boolean;
|
|
11
|
+
outlineColor?: Color | string;
|
|
12
|
+
outlineWidth?: number;
|
|
13
|
+
heightReference?: HeightReference;
|
|
14
|
+
extrudedHeight?: number;
|
|
15
|
+
onClick?: (entity: Entity) => void;
|
|
16
|
+
id?: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Polygon 工具类
|
|
20
|
+
*/
|
|
21
|
+
export declare class MapPolygon {
|
|
22
|
+
private viewer;
|
|
23
|
+
private entities;
|
|
24
|
+
constructor(viewer: Viewer);
|
|
25
|
+
/**
|
|
26
|
+
* 转换位置为 Cartesian3
|
|
27
|
+
*/
|
|
28
|
+
private convertPosition;
|
|
29
|
+
/**
|
|
30
|
+
* 转换颜色
|
|
31
|
+
*/
|
|
32
|
+
private resolveColor;
|
|
33
|
+
/**
|
|
34
|
+
* 解析材质
|
|
35
|
+
*/
|
|
36
|
+
private resolveMaterial;
|
|
37
|
+
/**
|
|
38
|
+
* 添加 Polygon(多边形)
|
|
39
|
+
*/
|
|
40
|
+
add(options: PolygonOptions): Entity;
|
|
41
|
+
/**
|
|
42
|
+
* 更新 Polygon 位置
|
|
43
|
+
*/
|
|
44
|
+
updatePositions(entity: Entity, positions: OverlayPosition[]): void;
|
|
45
|
+
/**
|
|
46
|
+
* 更新 Polygon 样式
|
|
47
|
+
*/
|
|
48
|
+
updateStyle(entity: Entity, options: Partial<Pick<PolygonOptions, 'material' | 'outline' | 'outlineColor' | 'outlineWidth'>>): void;
|
|
49
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Viewer, Entity, Color } from '../../../node_modules/cesium';
|
|
2
|
+
import { OverlayPosition } from './types';
|
|
3
|
+
import * as Cesium from "cesium";
|
|
4
|
+
/**
|
|
5
|
+
* Polyline 选项
|
|
6
|
+
*/
|
|
7
|
+
export interface PolylineOptions {
|
|
8
|
+
positions: OverlayPosition[];
|
|
9
|
+
width?: number;
|
|
10
|
+
material?: Cesium.MaterialProperty | Color | string;
|
|
11
|
+
clampToGround?: boolean;
|
|
12
|
+
onClick?: (entity: Entity) => void;
|
|
13
|
+
id?: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Polyline 工具类
|
|
17
|
+
*/
|
|
18
|
+
export declare class MapPolyline {
|
|
19
|
+
private viewer;
|
|
20
|
+
private entities;
|
|
21
|
+
constructor(viewer: Viewer);
|
|
22
|
+
/**
|
|
23
|
+
* 转换位置为 Cartesian3
|
|
24
|
+
*/
|
|
25
|
+
private convertPosition;
|
|
26
|
+
/**
|
|
27
|
+
* 转换颜色
|
|
28
|
+
*/
|
|
29
|
+
private resolveColor;
|
|
30
|
+
/**
|
|
31
|
+
* 解析材质
|
|
32
|
+
*/
|
|
33
|
+
private resolveMaterial;
|
|
34
|
+
/**
|
|
35
|
+
* 添加 Polyline(折线)
|
|
36
|
+
*/
|
|
37
|
+
add(options: PolylineOptions): Entity;
|
|
38
|
+
/**
|
|
39
|
+
* 更新 Polyline 位置
|
|
40
|
+
*/
|
|
41
|
+
updatePositions(entity: Entity, positions: OverlayPosition[]): void;
|
|
42
|
+
/**
|
|
43
|
+
* 更新 Polyline 样式
|
|
44
|
+
*/
|
|
45
|
+
updateStyle(entity: Entity, options: Partial<Pick<PolylineOptions, 'width' | 'material'>>): void;
|
|
46
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Viewer, Entity, Color, HeightReference } from '../../../node_modules/cesium';
|
|
2
|
+
import * as Cesium from "cesium";
|
|
3
|
+
/**
|
|
4
|
+
* Rectangle 选项
|
|
5
|
+
*/
|
|
6
|
+
export interface RectangleOptions {
|
|
7
|
+
coordinates: Cesium.Rectangle;
|
|
8
|
+
material?: Cesium.MaterialProperty | Color | string;
|
|
9
|
+
outline?: boolean;
|
|
10
|
+
outlineColor?: Color | string;
|
|
11
|
+
outlineWidth?: number;
|
|
12
|
+
heightReference?: HeightReference;
|
|
13
|
+
extrudedHeight?: number;
|
|
14
|
+
onClick?: (entity: Entity) => void;
|
|
15
|
+
id?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Rectangle 工具类
|
|
19
|
+
*/
|
|
20
|
+
export declare class MapRectangle {
|
|
21
|
+
private viewer;
|
|
22
|
+
private entities;
|
|
23
|
+
constructor(viewer: Viewer);
|
|
24
|
+
/**
|
|
25
|
+
* 转换颜色
|
|
26
|
+
*/
|
|
27
|
+
private resolveColor;
|
|
28
|
+
/**
|
|
29
|
+
* 解析材质
|
|
30
|
+
*/
|
|
31
|
+
private resolveMaterial;
|
|
32
|
+
/**
|
|
33
|
+
* 添加 Rectangle(矩形)
|
|
34
|
+
*/
|
|
35
|
+
add(options: RectangleOptions): Entity;
|
|
36
|
+
/**
|
|
37
|
+
* 更新 Rectangle 坐标
|
|
38
|
+
*/
|
|
39
|
+
updateCoordinates(entity: Entity, coordinates: Cesium.Rectangle): void;
|
|
40
|
+
/**
|
|
41
|
+
* 更新 Rectangle 样式
|
|
42
|
+
*/
|
|
43
|
+
updateStyle(entity: Entity, options: Partial<Pick<RectangleOptions, 'material' | 'outline' | 'outlineColor' | 'outlineWidth'>>): void;
|
|
44
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Viewer, Entity, Color, HeightReference, VerticalOrigin, HorizontalOrigin } from '../../../node_modules/cesium';
|
|
2
|
+
import { OverlayPosition } from './types';
|
|
3
|
+
import * as Cesium from "cesium";
|
|
4
|
+
/**
|
|
5
|
+
* SVG 选项
|
|
6
|
+
*/
|
|
7
|
+
export interface SvgOptions {
|
|
8
|
+
position: OverlayPosition;
|
|
9
|
+
svg: string;
|
|
10
|
+
width?: number;
|
|
11
|
+
height?: number;
|
|
12
|
+
scale?: number;
|
|
13
|
+
rotation?: number;
|
|
14
|
+
pixelOffset?: Cesium.Cartesian2;
|
|
15
|
+
eyeOffset?: Cesium.Cartesian3;
|
|
16
|
+
horizontalOrigin?: HorizontalOrigin;
|
|
17
|
+
verticalOrigin?: VerticalOrigin;
|
|
18
|
+
heightReference?: HeightReference;
|
|
19
|
+
disableDepthTestDistance?: number;
|
|
20
|
+
color?: Color | string;
|
|
21
|
+
onClick?: (entity: Entity) => void;
|
|
22
|
+
id?: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* SVG 工具类
|
|
26
|
+
*/
|
|
27
|
+
export declare class MapSVG {
|
|
28
|
+
private viewer;
|
|
29
|
+
private entities;
|
|
30
|
+
constructor(viewer: Viewer);
|
|
31
|
+
/**
|
|
32
|
+
* 转换位置为 Cartesian3
|
|
33
|
+
*/
|
|
34
|
+
private convertPosition;
|
|
35
|
+
/**
|
|
36
|
+
* 转换颜色
|
|
37
|
+
*/
|
|
38
|
+
private resolveColor;
|
|
39
|
+
/**
|
|
40
|
+
* 将 SVG 字符串转换为 data URL
|
|
41
|
+
*/
|
|
42
|
+
private svgToDataUrl;
|
|
43
|
+
/**
|
|
44
|
+
* 添加 SVG(使用 Billboard)
|
|
45
|
+
*/
|
|
46
|
+
add(options: SvgOptions): Entity;
|
|
47
|
+
/**
|
|
48
|
+
* 更新 SVG 位置
|
|
49
|
+
*/
|
|
50
|
+
updatePosition(entity: Entity, position: OverlayPosition): void;
|
|
51
|
+
/**
|
|
52
|
+
* 更新 SVG 内容
|
|
53
|
+
*/
|
|
54
|
+
updateSvg(entity: Entity, svg: string): void;
|
|
55
|
+
/**
|
|
56
|
+
* 更新 SVG 样式
|
|
57
|
+
*/
|
|
58
|
+
updateStyle(entity: Entity, options: Partial<Pick<SvgOptions, 'scale' | 'rotation' | 'color'>>): void;
|
|
59
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export { CesiumOverlayService } from '../CesiumOverlayService';
|
|
2
|
+
export { MapMarker } from './MapMarker';
|
|
3
|
+
export { MapLabel } from './MapLabel';
|
|
4
|
+
export { MapIcon } from './MapIcon';
|
|
5
|
+
export { MapSVG } from './MapSVG';
|
|
6
|
+
export { MapInfoWindow } from './MapInfoWindow';
|
|
7
|
+
export { MapPolyline } from './MapPolyline';
|
|
8
|
+
export { MapPolygon } from './MapPolygon';
|
|
9
|
+
export { MapRectangle } from './MapRectangle';
|
|
10
|
+
export { MapCircle } from './MapCircle';
|
|
11
|
+
export type { OverlayPosition } from './types';
|
|
12
|
+
export type { MarkerOptions } from './MapMarker';
|
|
13
|
+
export type { LabelOptions } from './MapLabel';
|
|
14
|
+
export type { IconOptions } from './MapIcon';
|
|
15
|
+
export type { SvgOptions } from './MapSVG';
|
|
16
|
+
export type { InfoWindowOptions } from './MapInfoWindow';
|
|
17
|
+
export type { PolylineOptions } from './MapPolyline';
|
|
18
|
+
export type { PolygonOptions } from './MapPolygon';
|
|
19
|
+
export type { RectangleOptions } from './MapRectangle';
|
|
20
|
+
export type { CircleOptions } from './MapCircle';
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { Viewer } from '../../../node_modules/cesium';
|
|
2
|
+
import { MapType, ZoomCallback } from '../CesiumMapModel';
|
|
3
|
+
interface MapInitialCenter {
|
|
4
|
+
longitude: number;
|
|
5
|
+
latitude: number;
|
|
6
|
+
height: number;
|
|
7
|
+
}
|
|
8
|
+
interface CesiumMapControllerOptions {
|
|
9
|
+
initialCenter?: MapInitialCenter;
|
|
10
|
+
/** 当前可用的地图类型列表(由外部维护),用于读取 maximumLevel 等配置 */
|
|
11
|
+
getMapTypes?: () => MapType[];
|
|
12
|
+
/** 获取当前底图类型 id(由外部维护) */
|
|
13
|
+
getCurrentMapTypeId?: () => string;
|
|
14
|
+
/** 获取当前天地图 token(用于从 provider 读取 maximumLevel 时保持行为一致) */
|
|
15
|
+
getToken?: () => string;
|
|
16
|
+
/** 缩放回调(来自 Toolbar 的 ZoomCallback) */
|
|
17
|
+
zoomCallback?: ZoomCallback;
|
|
18
|
+
/** 场景模式切换后回调(例如通知 DrawHelper 重新计算偏移) */
|
|
19
|
+
onSceneModeChanged?: () => void;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* 负责地图相机控制、缩放层级和 2D/3D 切换等逻辑的控制器
|
|
23
|
+
* 与 UI(工具栏)解耦,避免 Cesium 细节散落在各处。
|
|
24
|
+
*/
|
|
25
|
+
export declare class CesiumMapController {
|
|
26
|
+
private viewer;
|
|
27
|
+
private initialCenter?;
|
|
28
|
+
private getMapTypes?;
|
|
29
|
+
private getCurrentMapTypeId?;
|
|
30
|
+
private getToken?;
|
|
31
|
+
private zoomCallback?;
|
|
32
|
+
private onSceneModeChanged?;
|
|
33
|
+
constructor(viewer: Viewer, options?: CesiumMapControllerOptions);
|
|
34
|
+
/**
|
|
35
|
+
* 监听相机缩放,限制层级范围到 [1, 18],并参考当前底图的 maximumLevel
|
|
36
|
+
*/
|
|
37
|
+
setupCameraZoomLimitListener(): void;
|
|
38
|
+
/**
|
|
39
|
+
* 获取当前地图层级(1-18)
|
|
40
|
+
*/
|
|
41
|
+
getCurrentZoomLevel(): number;
|
|
42
|
+
/**
|
|
43
|
+
* 设置地图层级
|
|
44
|
+
* @param zoomLevel 目标层级(1-18)
|
|
45
|
+
*/
|
|
46
|
+
setZoomLevel(zoomLevel: number): void;
|
|
47
|
+
/** 放大 */
|
|
48
|
+
zoomIn(): void;
|
|
49
|
+
/** 缩小 */
|
|
50
|
+
zoomOut(): void;
|
|
51
|
+
/**
|
|
52
|
+
* 2D/3D 切换
|
|
53
|
+
*/
|
|
54
|
+
toggle2D3D(buttonElement: HTMLElement): void;
|
|
55
|
+
/**
|
|
56
|
+
* 复位到初始位置
|
|
57
|
+
*/
|
|
58
|
+
resetLocation(): void;
|
|
59
|
+
setInitialCenter(center: MapInitialCenter): void;
|
|
60
|
+
getInitialCenter(): MapInitialCenter | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* 切换全屏
|
|
63
|
+
*/
|
|
64
|
+
toggleFullscreen(): void;
|
|
65
|
+
/**
|
|
66
|
+
* 检查是否处于全屏状态
|
|
67
|
+
*/
|
|
68
|
+
isFullscreen(): boolean;
|
|
69
|
+
/**
|
|
70
|
+
* 进入全屏
|
|
71
|
+
*/
|
|
72
|
+
enterFullscreen(): void;
|
|
73
|
+
/**
|
|
74
|
+
* 退出全屏
|
|
75
|
+
*/
|
|
76
|
+
exitFullscreen(): void;
|
|
77
|
+
}
|
|
78
|
+
export {};
|