fix(layer) getlegendcfg

This commit is contained in:
thinkinggis 2019-03-22 17:09:20 +08:00
parent 28d4d9b337
commit de559a204f
3 changed files with 3 additions and 3 deletions

View File

@ -71,7 +71,7 @@ scene.on('loaded', () => {
})
.render();
console.log(circleLayer);
var a = circleLayer.getLendgendCfg('type','color');
var a = circleLayer.getLegendCfg('type','color');
console.log(a);
circleLayer.on('click',(e)=>{
console.log(e);

View File

@ -1,6 +1,6 @@
{
"name": "@antv/l7",
"version": "1.1.3",
"version": "1.1.5",
"description": "Large-scale WebGL-powered Geospatial Data Visualization",
"main": "build/l7.js",
"browser": "build/l7.js",

View File

@ -643,7 +643,7 @@ export default class Layer extends Base {
* @param {*} type 图例类型 color, size
* @return {*} 图例配置项
*/
getLendgendCfg(field, type = 'color') {
getLegendCfg(field, type = 'color') {
// todo heatmap
if (this.type === 'heatmap' && this.shapeType === 'heatmap') {
return this.get('styleOptions').rampColors;