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

vit-gis-tool

v0.0.25

Published

``` 安装 yarn or npm install 运行 yarn serve or npm run serve 打包项目 yarn build or npm run build 打包库 yarn npmpack or npm run npmpack 上传NPM npm publish ```

Downloads

12

Readme

项目操作相关命令

安装 yarn or npm install
运行 yarn serve or npm run serve
打包项目 yarn build or npm run build
打包库 yarn npmpack or npm run npmpack
上传NPM npm publish

yarn add vit-gis-tool or npm install vit-gis-tool

局部导入

//图层树

import {LayerTree} from "vit-gis-tool/dist/npm/vit-web-tool.umd.min.js";

示例:               <LayerTree
                        :viewer="viewer"
                        :olMap="olMap"
                        :treeData="treeData"
                        :treeMode="1"
                        :mapMode="1"
                        :defaultExpandedKeys="[
                            treeData[1].id,
                            treeData[5].id,
                            treeData[6].id,
                        ]"
                        @control="getControl"
                        :showSearch="true"
                        :showType="true"
                    >
                        <template #picture="{ info }">
                            <a-icon
                                type="picture"
                                title="图例管理"
                                @click="pictureHandle(info)"
                            />
                        </template>
                        <template #edit="id">
                            <a-icon
                                type="edit"
                                title="编辑"
                                @click="editHandle(id)"
                            />
                        </template>
                        <template #delete="id">
                            <a-icon
                                type="delete"
                                title="删除"
                                @click="deleteHandle(id)"
                            />
                        </template>
                    </LayerTree>

参数解释:
viewer:cesium地图实例
olMap:openlayers地图实例
该组件支持这两种地图上图方式,至少传一种
treeData:树形结构数组
treeMode:树结构模式,string类型,"1"代表编辑模式,"2"代表上图模式
mapMode:地图模式,string类型,"1"代表cesium,"2"代表openlayers
defaultExpandedKeys:默认展开的key,与Antdesign规则一致
control:传函数,勾选图层可获取容器里的数据结构
showSearch:显示或隐藏搜索框
showType:显示或隐藏图层类型

//cesium地图实例
import {CesiumSceneMap} from "vit-gis-tool/dist/npm/vit-web-tool.umd.min.js";
示例:                  <CesiumSceneMap
                            @initMap="initMap"
                            :tools-show="true"
                        ></CesiumSceneMap>
参数解释:
initMap:传函数,可获取地图实例
toolsShow:显示或隐藏底部工具栏
terrainUrl:地形地址
isSct:是否为超图地形,如果是超图地形,要传入为true,cesium地形地址可不传

//ol地图实例
import {OlMap} from "vit-gis-tool/dist/npm/vit-web-tool.umd.min.js";
示例:                  <OlMap
                            @initOlMap="initOlMap"
                        ></OlMap>
参数解释:
initOlMap:传函数,可获取地图实例
center:地图中心位置,例子:[103.23, 35.33]
projection:坐标系,默认为"EPSG:4326"


//cesium,ol地图大部分上图函数
import {mapDataInit} from "vit-gis-tool/dist/npm/vit-web-tool.umd.min.js";
这里就不一一介绍了,有兴趣的可以打印看看