Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
coord-picker
Advanced tools
$ yarn add coord-picker
依赖:vue element-ui
import 'coord-picker/dist/coord-picker.css'
import CoordPicker from 'coord-picker'
// 组件内引入
components: { CoordPicker }
// 全局引入
Vue.use(CoordPicker)
<CoordPicker :show.sync="" apiKey=""/>
Attribute | Description | Configuration Mode | Type | Accepted Values | Default |
---|---|---|---|---|---|
show.sync | 开关 | props | boolean | false | |
apiKey | 高德地图js api key | props, global | string | ||
city | 初始地区 | props, global | string | 城市名称 / 省份名称 | |
address.sync | 地址 | props | string | ||
lng.sync | 经度 | props | number / string | ||
lat.sync | 纬度 | props | number / string | ||
zoom.sync | 缩放级别 | props | number | ||
precision | 坐标精度(保留几位小数) | props, global | number | 6 | |
addressComponent | 地址成分 可以指定选中的address是否包含省/市/区 | props, global | object | { province:true, city:true, district:true } | |
img | 图片链接(用于图片图层) | props | string | ||
imgNorthEastLng.sync | 图片东北角经度(用于图片图层) | props | number / string | ||
imgNorthEastLat.sync | 图片东北角纬度(用于图片图层) | props | number / string | ||
imgSouthWestLng.sync | 图片西南角经度(用于图片图层) | props | number / string | ||
imgSouthWestLat.sync | 图片西南角纬度(用于图片图层) | props | number / string | ||
boundary.sync | 区域轮廓(用于绘制区域) | props | array |
坐标系:高德/腾讯地图通用的GCJ-02
高德JS-API版本:1.4.15(2.0存在诸多问题,性能也不如1.x,等待后续更新)
坐标值类型:number和string都能接收 但返回时 由于js的number类型存在精度丢失问题 故返回string
boundary格式
[
// 轮廓1
{
data: [
{ 'longitude': '106.44294', 'latitude': '26.644338' },
{ 'longitude': '106.431267', 'latitude': '26.504937' },
{ 'longitude': '106.569282', 'latitude': '26.585405' }
]
},
// 轮廓1
{
data: [
{ 'longitude': '106.623527', 'latitude': '26.52767' },
{ 'longitude': '106.602241', 'latitude': '26.415188' },
{ 'longitude': '106.721031', 'latitude': '26.472979' }
]
}
]
FAQs
Coordinates picker for AMap & TMap.
The npm package coord-picker receives a total of 21 weekly downloads. As such, coord-picker popularity was classified as not popular.
We found that coord-picker demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.