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

v10.3.4

Published

中地数码WebClient的对外发行版本与司马云保持一致

Downloads

174

Readme

司马云使用方式说明

http://develop.smaryun.com:8899/#/total/use

核心用法

  1. 这里是引入基本的三方库如jquery,bootstrap等.

    除了常规的引入 include-lib-local.js脚本外,通过设置属性 include="jquery,bootstrap" 的方式自动寻找引入对应的第三方脚本jquery,bootstrap。

  2. 这里是引入常见的地图脚本leaflet以及对应的geojson,turf,elasticsearch插件.

    除了常规的引入 include-leaflet-local.js脚本外,通过设置属性 include="geojson,turf" 的方式自动寻找引入对应的第三方脚本leaflet,geojson,turf。

  3. include="geojson,turf"的里面的插件没有先后顺序,内部维护了其先后顺序.

  4. include-.js中include="xxx"具体的名字类型geojson,turf,elasticsearc等可以在include-.js内部的代码中查看

本地离线使用

离线版本的核心原理就是根据include=""中的名字,在 当前cdn文件夹下寻找对应的js的脚本并按照规定的顺序引入到浏览器中.

  1. 请把webclient安装包安装完成后的cdn的文件夹与include-.js在同一目录下,然后只需正常的引入对应的include-.js即可”.
  2. “include-*.js 通过include="xxx"的方式自动寻找引入对应的第三方脚本”.

互联网在线使用

  1. Cesium
    <script include="geojson,geohash,mapv" src="http://develop.smaryun.com:8899/static/libs/include-cesium-local.js"></script>
  2. MapboxGL
    <script include="geojson,geohash,mapv" src="http://develop.smaryun.com:8899/static/libs/include-mapboxgl-local.js"></script>
  3. Leaflet
    <script include="geojson,geohash,mapv" src="http://develop.smaryun.com:8899/static/libs/include-leaflet-local.js"></script>
  4. Openlayers
    <script include="geojson,geohash,mapv" src="http://develop.smaryun.com:8899/static/libs/include-openlayers-local.js"></script>