qzc-dev
parent
86c3f93759
commit
e8427b9127
|
|
@ -33,9 +33,10 @@ export default class LayerMgr3D extends LayerMgr {
|
||||||
for (const layer of this.layers) {
|
for (const layer of this.layers) {
|
||||||
layer.destroy();
|
layer.destroy();
|
||||||
}
|
}
|
||||||
|
this.viewer.dataSources.removeAll();
|
||||||
this.viewer.entities.removeAll();
|
this.viewer.entities.removeAll();
|
||||||
|
|
||||||
this.viewer.imageryLayers.removeAll()
|
this.viewer.imageryLayers.removeAll()
|
||||||
|
this.viewer.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
frameUpdate() {
|
frameUpdate() {
|
||||||
|
|
|
||||||
|
|
@ -160,14 +160,12 @@ function AdcdMarker({ data, dispatch, setting, zoom, distSq, layerVisible }) {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{
|
{
|
||||||
( (zoom > 8 || distSq < dist2 || highlight) && (data.level === 5 || data.level === 4) &&
|
(data.level === 5 || data.level === 4) &&
|
||||||
// isShow
|
|
||||||
true
|
|
||||||
) && (
|
|
||||||
<>
|
<>
|
||||||
<div
|
<div
|
||||||
id={`marker_tuxiang_${data.id}`}
|
id={`marker_tuxiang_${data.id}`}
|
||||||
style={{
|
style={{
|
||||||
|
display:(zoom > 8 || distSq < dist2 || highlight)?'block':'none',
|
||||||
position: 'absolute',
|
position: 'absolute',
|
||||||
bottom: 0,
|
bottom: 0,
|
||||||
left: 0,
|
left: 0,
|
||||||
|
|
@ -182,6 +180,7 @@ function AdcdMarker({ data, dispatch, setting, zoom, distSq, layerVisible }) {
|
||||||
className="markerLabel"
|
className="markerLabel"
|
||||||
style={{
|
style={{
|
||||||
// backgroundColor: '#0008',
|
// backgroundColor: '#0008',
|
||||||
|
display:(zoom > 8 || distSq < dist2 || highlight)?'block':'none',
|
||||||
padding: 4,
|
padding: 4,
|
||||||
borderRadius: 4,
|
borderRadius: 4,
|
||||||
fontSize: 10,
|
fontSize: 10,
|
||||||
|
|
@ -195,18 +194,15 @@ function AdcdMarker({ data, dispatch, setting, zoom, distSq, layerVisible }) {
|
||||||
{data?.NAME}
|
{data?.NAME}
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
( (zoom > 12 || distSq < dist2 || highlight) && data.level === 6 &&
|
data.level === 6 &&
|
||||||
// isShow
|
|
||||||
true
|
|
||||||
) && (
|
|
||||||
<>
|
<>
|
||||||
<div
|
<div
|
||||||
id={`marker_tuxiang_${data.id}`}
|
id={`marker_tuxiang_${data.id}`}
|
||||||
style={{
|
style={{
|
||||||
|
display:(zoom > 12 || distSq < dist2 || highlight)?'block':'none',
|
||||||
position: 'absolute',
|
position: 'absolute',
|
||||||
bottom: 0,
|
bottom: 0,
|
||||||
left: 0,
|
left: 0,
|
||||||
|
|
@ -220,6 +216,7 @@ function AdcdMarker({ data, dispatch, setting, zoom, distSq, layerVisible }) {
|
||||||
<div
|
<div
|
||||||
className="markerLabel"
|
className="markerLabel"
|
||||||
style={{
|
style={{
|
||||||
|
display:(zoom > 12 || distSq < dist2 || highlight)?'block':'none',
|
||||||
// backgroundColor: '#0008',
|
// backgroundColor: '#0008',
|
||||||
padding: 4,
|
padding: 4,
|
||||||
borderRadius: 4,
|
borderRadius: 4,
|
||||||
|
|
@ -234,7 +231,6 @@ function AdcdMarker({ data, dispatch, setting, zoom, distSq, layerVisible }) {
|
||||||
{data?.NAME}
|
{data?.NAME}
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
)
|
|
||||||
}
|
}
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue