Skip to content

vScale 比例尺

地图比例尺组件。

基础用法

vue
<script setup>
import { vMap, vScale } from '@twi1i9ht/visual-lib'
</script>

<template>
  <vMap :center-lat="39.9" :center-lng="116.4" :zoom="12">
    <vScale position="bottomleft" />
  </vMap>
</template>

Props

属性类型默认值说明
position'topleft' | 'topright' | 'bottomleft' | 'bottomright''bottomleft'位置
maxWidthnumber100最大宽度
metricbooleantrue是否显示公制单位
imperialbooleanfalse是否显示英制单位

Released under the MIT License.