10.3.4 • Published 4 years ago

@mapgis/webclient v10.3.4

Weekly downloads
84
License
ISC
Repository
-
Last release
4 years ago

司马云使用方式说明

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>