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

@mapgis/webclient-vue-mapboxgl

v17.2.2

Published

中地数码webclient-vue-mapboxgl

Downloads

75

Readme

Webclient-Vue-MapboxGL


简介

webclient-vue-mapboxgl是基于MapboxGL实现的vue组件开发库,提供构建Web二维GIS应用的常用vue组件。

模块说明

模块说明

特点

  • 组件式风格

通过 Vue 的组件方式调用 layers, markers, popups, 并且使用同步synchronized props来控制状态

  • Vue 控制

面向对象编程:地图元素拥有 Vue 的生命周期,将原生地图事件封装成 Vue 的事件

  • 同步的 Promise Actions

原先异步的地图操作变成同步操作,并且采取Promise的方式进行开发避免大量的地图事件回调导致代码逻辑混乱,能够清晰的知道是什么行为导致地图的变化。

编译

由于vue-cli针对core-js2和core-js3的支持不同,导致了目前只能处理对应core-js2的版本,需要安装环境的时候先屏蔽dependencies所有依赖后,先安装devDependencies将环境设置为core-js2,再放开dependencies依赖


安装

npm install --save @mapgis/webclient-vue-mapboxgl
# 或者
yarn add @mapgis/webclient-vue-mapboxgl

在 main.js 中全局引入组件和样式文件

import "@mapgis/webclient-vue-ui/dist-libs/webclient-vue-ui.css";
import "@mapgis/webclient-vue-mapboxgl/dist-libs/webclient-vue-mapboxgl.css";

import MapgisUi from "@mapgis/webclient-vue-ui";
import Mapgis2d from "@mapgis/webclient-vue-mapboxgl";

Vue.use(MapgisUi);
Vue.use(Mapgis2d);

相关链接


项目依赖