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-cesium-tools

v0.5.0

Published

cesium 图层上图工具,内部使用

Downloads

37

Readme

vit-cesium-tools

[警告⚠]
免责声明:该插件仅限公司内部使用,有人需要使用的话请斟酌,出了问题我概不负责。

项目操作相关命令

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

安装

npm i vit-cesium-tools

插件使用教程

[注意事项⚠]

// 地图选择器中有一些特定的配置,你需要提前在全局变量中配置这些,直接暴露在window下面
const VIT_CESIUM_LAYER_CONFIG = {
  TDT_LAYER_TOKEN: "08455f205efce4ce9a63f1cd8096c0d1",//天地图Key
  DI_XING_LAYER:"http://www.freexgis.com/web-data/terrain", //地形地址
  DI_XING_LAYER_MAX : "8",//地形最大层级
  BAI_MO_LAYER:"", //默认的白膜地址
  QING_XIE_LAYER:[],
}

全局导入

import Vct from "vit-cesium-tools/dist/npm/vit-cesium-tools.umd.min.js";
Vue.use(Vct);

局部导入

import {ShowMapModal} from "vit-cesium-tools/dist/npm/vit-cesium-tools.umd.min.js";
//组件介绍
{
    ShowMapModal, // 地图选择器
    LayerTime, // 时间轴插件
    CesiumSceneMap, // 初始化地图
}

【须知:组件详细使用参见内部git地址 http://ip:port//Repository/Tree/vit-cesium-tool/】
【具体示例地址在:src/viewer/model 文件夹下】

版本更替说明说明

^0.1.0:上传了所有的文件,图层选择类
^0.2.0:指定打包后文件上传,新增时间轴插件 
^0.3.0:修复了TMS加载的bug,新增XYZ(即谷歌切片)切片加载 
^0.4.0:为了兼容超图框架所以引入了超图的cesium,该版本属于大版本更改
^0.4.3:修改了一些小的问题
^0.4.7:添加记录视角的勾选框

⚠遗留问题

1.打包设置始终存在问题我都没写什么代码打包之后有接近一兆的代码,感觉是吧其他的东西打包进去了。