@langge-data/mapbox-gl-style-config
a class library of measurement tools based on mapbox-gl
Installation
Requires nodejs.
$ npm install @langge-data/mapbox-gl-style-config --save-dev
Documentation
dev:http://maptile-style.langge.tech/www-maptile-conf/styles/sdmap/dev-style.json test:http://maptile-style.langge.tech/www-maptile-conf/styles/sdmap/test-style.json pre:http://maptile-style.langge.tech/www-maptile-conf/styles/sdmap/pre-style.json prod:https://maptile-style.langgemap.com/maptile-conf/styles/sdmap/style.json
API
getStyleConfig(mode,version)
一个基于 mapbox gl 获取style 样式配置文件的类库
Parameters
-
mode
[String] 当前工程运行环境(dev、test、pre、prod) -
version
[String] 获取配置文件的版本号,默认值:1.3.0
Examples
getStyleConfig('dev','1.3.0')
getPlatformStyleConfig(mode,platform,version)
一个基于 mapbox gl 获取style 样式配置文件的类库
Parameters
-
mode
[String] 当前工程运行环境(dev、test、pre、prod) -
platform
[String] 获取的平台类型(poi,eval,info) -
version
[String] 获取配置文件的版本号,默认值:1.5.0
platform 枚举说明:
value | desc |
---|---|
info | 情报核实平台 |
eval | 数据评测平台 |
poi | POI作业平台 |
Examples
getPlatformStyleConfig('dev','info','1.3.0')