|
@@ -258,8 +258,19 @@ export class SFengParser extends SParser {
|
|
|
let searchAnalyser = new fengmap.FMSearchAnalyser(this.fmap);
|
|
|
// 创建搜索请求体对象
|
|
|
let searchReq = new fengmap.FMSearchRequest();
|
|
|
- const minx = this.minX || this.fmap.minX;
|
|
|
- const maxy = this.maxY || this.fmap.maxY;
|
|
|
+ let minx: number, maxy: number;
|
|
|
+ if (this.minX) {
|
|
|
+ minx = this.minX;
|
|
|
+ } else {
|
|
|
+ minx = this.fmap.minX;
|
|
|
+ this.minX = minx;
|
|
|
+ }
|
|
|
+ if (this.maxY) {
|
|
|
+ maxy = this.maxY;
|
|
|
+ } else {
|
|
|
+ maxy = this.fmap.maxY;
|
|
|
+ this.maxY = maxy;
|
|
|
+ }
|
|
|
searchReq.groupID = groupId;
|
|
|
searchReq.type = "Model";
|
|
|
searchAnalyser.query(searchReq, (result: any) => {
|