0.1.3 • Published 11 months ago

@hansotech/mfair-wsp-mod-mapbox-jssdk v0.1.3

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

mapboxGl 模飞封装

API

初始化

const mapIns = new MapboxFair({
    option: {
        container: '#map'
    }
});

设置绘图样式

/**
 *
 * @description 设置指定样式层中绘图属性的值
 * @param {string} layerId - 图层ID
 * @param {string} name - 绘图属性名称
 * @param {any} value - 绘图属性值
 * @return map
 *
 * @example
 * map.setPaintProperty('my-layer', 'fill-color', '#faafee');
 *
 */
setPaintProperty(layerId, name, value, option = {})
0.1.3

11 months ago

0.1.2

11 months ago