调整
This commit is contained in:
parent
c2edf0fc92
commit
4552b181c3
@ -28,7 +28,7 @@
|
||||
label="自动缩放"
|
||||
v-model="options.autoScaling"
|
||||
color="primary"
|
||||
@update:model-value="redrawMap"
|
||||
@update:model-value="toggleAutoView"
|
||||
keep-color
|
||||
/>
|
||||
|
||||
@ -76,8 +76,12 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fixed bg-amber-50 rounded-tl z-max text-center absolute-bottom-right" style="width: 300px" v-if="view.lines.length > 0">
|
||||
路径数量 {{view.lines.length}}
|
||||
<div class="fixed bg-amber-50 rounded-tl z-max text-left absolute-bottom-right pl-1.5" style="width: 350px" v-if="view.lines.length > 0">
|
||||
路径数量: {{view.lines.length}}
|
||||
|
||||
<div v-for="(item,i) in view.lines" :key="i">
|
||||
{{item[0].locationTime}} ~ {{item[item.length-1].locationTime}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@ -175,6 +179,12 @@ function login(){
|
||||
})
|
||||
}
|
||||
|
||||
function toggleAutoView(v){
|
||||
if(v){
|
||||
map.setFitView()
|
||||
}
|
||||
}
|
||||
|
||||
function toggleShowMarker(v){
|
||||
if(v){
|
||||
options.autoScaling = false
|
||||
|
Loading…
Reference in New Issue
Block a user