@hansotech/mfair-wsp-mod-mapbox-jssdk
v0.1.3
Published
MFair-JSSDK-Mapbox-Launcher
Downloads
1
Readme
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 = {})