mirror of https://gitee.com/antv-l7/antv-l7
fix: link fix
This commit is contained in:
parent
e9bf2a4f00
commit
383b25e794
|
@ -1,4 +1,5 @@
|
||||||
# L7
|
# L7
|
||||||
|
|
||||||
.
|
.
|
||||||
[![travis ci](https://travis-ci.com/antvis/L7.svg?branch=master)](https://travis-ci.com/antvis/L7) [![](https://flat.badgen.net/npm/v/@antv/l7?icon=npm)](https://www.npmjs.com/package/@antv/l7) ![最近提交](https://badgen.net/github/last-commit/antvis/L7)
|
[![travis ci](https://travis-ci.com/antvis/L7.svg?branch=master)](https://travis-ci.com/antvis/L7) [![](https://flat.badgen.net/npm/v/@antv/l7?icon=npm)](https://www.npmjs.com/package/@antv/l7) ![最近提交](https://badgen.net/github/last-commit/antvis/L7)
|
||||||
|
|
||||||
|
|
|
@ -11,11 +11,7 @@ import {
|
||||||
lazyInject,
|
lazyInject,
|
||||||
TYPES,
|
TYPES,
|
||||||
} from '@antv/l7-core';
|
} from '@antv/l7-core';
|
||||||
import {
|
import { bBoxToBounds, extent, padBounds } from '@antv/l7-utils';
|
||||||
bBoxToBounds,
|
|
||||||
extent,
|
|
||||||
padBounds,
|
|
||||||
} from '@antv/l7-utils';
|
|
||||||
import {
|
import {
|
||||||
BBox,
|
BBox,
|
||||||
Feature,
|
Feature,
|
||||||
|
@ -181,7 +177,6 @@ export default class Source extends EventEmitter {
|
||||||
];
|
];
|
||||||
|
|
||||||
if (!this.invalidExtent) {
|
if (!this.invalidExtent) {
|
||||||
|
|
||||||
newBounds = padBounds(bBoxToBounds(this.extent), bufferRatio);
|
newBounds = padBounds(bBoxToBounds(this.extent), bufferRatio);
|
||||||
}
|
}
|
||||||
return newBounds[0].concat(newBounds[1]);
|
return newBounds[0].concat(newBounds[1]);
|
||||||
|
@ -214,8 +209,8 @@ export default class Source extends EventEmitter {
|
||||||
this.data = sourceParser(this.originData, parser);
|
this.data = sourceParser(this.originData, parser);
|
||||||
// 计算范围
|
// 计算范围
|
||||||
this.extent = extent(this.data.dataArray);
|
this.extent = extent(this.data.dataArray);
|
||||||
this.invalidExtent = this.extent[0]===this.extent[2] || this.extent[1]===this.extent[3]
|
this.invalidExtent =
|
||||||
|
this.extent[0] === this.extent[2] || this.extent[1] === this.extent[3];
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 数据统计
|
* 数据统计
|
||||||
|
|
Loading…
Reference in New Issue