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

@psr-framework/vue3-plugin-amap

v1.4.7

Published

高德地图AMap JSAPI vue3.x组件

Downloads

77

Readme

vue3-plugin-amap

高德地图AMap JSAPI vue3.x组件

安装

npm i @psr-framework/vue3-plugin-amap

全局注册

import "@psr-framework/vue3-plugin-amap/style.css"
import {PsrVue3AMapPlugin} from "@psr-framework/vue3-plugin-amap";

const app = createApp(App).use(PsrVue3AMapPlugin).mount('#app')

按需注册

import "@psr-framework/vue3-plugin-amap/style.css"
import {PsrVue3AMap} from "@psr-framework/vue3-plugin-amap";

组件

PsrVue3AMap 地图

属性

  1. mapKey 高德地图API访问密钥 必填
  2. mapLogo 是否显示高德地图logo 默认值true
  3. mapCenter 视图中心经纬度 { lng: number, lat: number }
  4. mapZoom 视图缩放级别 默认值5

插槽

  1. default(map) 图层、覆盖物等,插槽属性map:地图对象

导出

  1. map: AMap.Map 地图对象

PsrVue3AMapMarker 点标记

属性

  1. aMap 地图对象
  2. markerPosition 位置经纬度
  3. markerTitle 标题文本
  4. markerVisible 可见性
  5. markerDraggable 可拖拽
  6. markerLabel 标签文本
  7. markerLabelDirection 标签方向
  8. markerLabelOffset 标签偏移
  9. markerCustom 自定义内容 默认值false

插槽

  1. 默认 自定义内容

导出

  1. marker: AMap.Marker 标记对象

PsrVue3AMapMarkerCluster 点聚合

属性

  1. aMap 地图对象
  2. clusterData 聚合数据
  3. clusterGridSize 聚合网格大小 默认值60
  4. clusterMaxZoom 聚合最大放大级别 默认值18
  5. clusterAverageCenter 是否使用平均中心 默认值true
  6. clusterStyles 聚合样式
  7. clusterCustomMarker 自定义未聚合标记

插槽

  1. marker(data) 自定义未聚合标记内容,插槽属性data:标记对应的聚合数据元素

导出

  1. markerCluster: AMap.MarkerCluster 标记聚合对象

PsrVue3AMapLayerBuildings 建筑图层

属性

  1. aMap 地图对象
  2. buildingsWallColor 墙壁颜色
  3. buildingsRoofColor 屋顶颜色
  4. buildingsOpacity 透明度 默认值1
  5. buildingsZoomMin 显示建筑的缩放级别下限 默认值2
  6. buildingsZoomMax 显示建筑的缩放级别上限 默认值20
  7. buildingsVisible 可见性

导出

  1. buildings: AMap.Buildings 建筑图层对象

PsrVue3AMapInfoWindow 消息窗体

属性

  1. aMap 地图对象
  2. infoWindowCustom 自定义内容 默认值false
  3. infoWindowVisible 可见性(双向绑定)
  4. infoWindowPosition 打开位置

导出

  1. infoWindow: AMap.InfoWindow 消息窗体对象

PsrVue3AMapLayerThreeJs ThreeJs图层

属性

  1. aMap 地图对象
  2. layerData THREE.Object3D对象
  3. layerOpacity 透明度 默认值1
  4. layerZoomMin 显示显示图层的缩放级别下限 默认值2
  5. layerZoomMax 显示显示图层的缩放级别上限 默认值20
  6. layerVisible 可见性

导出

  1. threeJs: AMap.GLCustomLayer 图层对象