npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

vue_ui_map

v0.1.5

Published

## Project setup ``` npm install ```

Downloads

2

Readme

下载组件

安装

npm i @mobile-component/zn_vue_ui_map@latest --save

导入工程

import ZnMap from '@mobile-component/zn_vue_ui_map'
Vue.use(ZnMap)

用法说明

<zn-map><zn-map/>

参数配置

| 属性 | 说明 | 类型 | 可选值 | 默认值 | 是否必填 | | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------- | ------ | ------------------------------------------------ | -------- | | center | 地图中心点, [经度,维度] 形式,经纬度都必须是 Number 类型 | Array | - | [0,0] | 否 | | zoom | 地图缩放等级 | Number | - | 11 | 否 | | setFitView | 地图上覆盖物较多的情况下,如果需要保证所有覆盖物都在视野范围内,将地图调整到合适的缩放等级和中心点。该属性设置为 true 时,center 和 zoom 属性失效 | Boolean | - | true | 否 | | markers | 地图上点标记,对象数组形式,[marker1,marker2,...],详见 markers 说明 | Array | - | [] | 否 | | lang | 地图语言 | String | - | 'zh_cn' | 否 | | mapStyle | 地图主题 | String | - | 'amap://styles/a8f732190ecfcba98d4d09b4b7bd2114' | 否 | | resizeEnable | 是否监控地图容器尺寸变化 | Boolean | - | true | 否 |

markers 说明

| 属性 | 说明 | 类型 | 可选值 | 默认值 | 是否必填 | | ---------- | -------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ------ | ------ | -------------------------- | | position | 点标记经纬度 | Array | - | - | 是 | | size | 图标宽高,[宽,高] 形式,宽高都必须是 Number 类型 | Array | - | - | 是(使用默认点标记时不必填) | | src | 图片地址,本地图片需要使用 require() 引入,如果需要使用默认蓝色定位图标,该属性不填,size 属性不填 | String | - | - | 否 | | title | 鼠标换过点标记的提示语 | String | - | - | 否 | | infoWindow | 点标记的信息窗口。content 为信息窗的内容, | {content:String / htmlDOM,custom:{backgroundColor: 背景颜色,borderColor: 边框颜色}} | - | - | 否 |