Skip to content

Commit 5769c82

Browse files
更新 fgb 可视化示例
1 parent ccd8fe0 commit 5769c82

26 files changed

+2363
-3467
lines changed

dist/classic/iclient-classic-es6.js

Lines changed: 511 additions & 263 deletions
Large diffs are not rendered by default.

dist/classic/iclient-classic-es6.min.js

Lines changed: 36 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/classic/iclient-classic.js

Lines changed: 1313 additions & 2699 deletions
Large diffs are not rendered by default.

dist/classic/iclient-classic.min.js

Lines changed: 45 additions & 45 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/leaflet/iclient-leaflet-es6.js

Lines changed: 54 additions & 38 deletions
Large diffs are not rendered by default.

dist/leaflet/iclient-leaflet-es6.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/leaflet/iclient-leaflet.js

Lines changed: 54 additions & 38 deletions
Large diffs are not rendered by default.

dist/leaflet/iclient-leaflet.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/mapboxgl/iclient-mapboxgl-es6.js

Lines changed: 58 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -42383,7 +42383,13 @@ var GEOMETRY_TYPE_MAP = {
4238342383
3: 'fill',
4238442384
5: 'line',
4238542385
4: 'circle',
42386-
6: 'fill'
42386+
6: 'fill',
42387+
'MultiPolygon': 'fill',
42388+
'Point': 'circle',
42389+
'MultiLineString': 'line',
42390+
'MultiPoint': 'circle',
42391+
'LineString': 'line',
42392+
'Polygon': 'fill'
4238742393
};
4238842394
var PAINT_MAP = {
4238942395
circle: {
@@ -42584,53 +42590,56 @@ var FGBLayer = /*#__PURE__*/function () {
4258442590
return _iterator.next();
4258542591
case 7:
4258642592
if (!(_iteratorAbruptCompletion = !(_step = _context3.sent).done)) {
42587-
_context3.next = 14;
42593+
_context3.next = 15;
4258842594
break;
4258942595
}
4259042596
feature = _step.value;
4259142597
if (this.options.featureLoader && typeof this.options.featureLoader === 'function') {
4259242598
feature = this.options.featureLoader(feature);
4259342599
}
42600+
if (!this.layerType) {
42601+
this.layerType = GEOMETRY_TYPE_MAP[feature.geometry.type];
42602+
}
4259442603
features.features.push(feature);
42595-
case 11:
42604+
case 12:
4259642605
_iteratorAbruptCompletion = false;
4259742606
_context3.next = 5;
4259842607
break;
42599-
case 14:
42600-
_context3.next = 20;
42608+
case 15:
42609+
_context3.next = 21;
4260142610
break;
42602-
case 16:
42603-
_context3.prev = 16;
42611+
case 17:
42612+
_context3.prev = 17;
4260442613
_context3.t0 = _context3["catch"](3);
4260542614
_didIteratorError = true;
4260642615
_iteratorError = _context3.t0;
42607-
case 20:
42608-
_context3.prev = 20;
42616+
case 21:
4260942617
_context3.prev = 21;
42618+
_context3.prev = 22;
4261042619
if (!(_iteratorAbruptCompletion && _iterator["return"] != null)) {
42611-
_context3.next = 25;
42620+
_context3.next = 26;
4261242621
break;
4261342622
}
42614-
_context3.next = 25;
42623+
_context3.next = 26;
4261542624
return _iterator["return"]();
42616-
case 25:
42617-
_context3.prev = 25;
42625+
case 26:
42626+
_context3.prev = 26;
4261842627
if (!_didIteratorError) {
42619-
_context3.next = 28;
42628+
_context3.next = 29;
4262042629
break;
4262142630
}
4262242631
throw _iteratorError;
42623-
case 28:
42624-
return _context3.finish(25);
4262542632
case 29:
42626-
return _context3.finish(20);
42633+
return _context3.finish(26);
4262742634
case 30:
42628-
return _context3.abrupt("return", features);
42635+
return _context3.finish(21);
4262942636
case 31:
42637+
return _context3.abrupt("return", features);
42638+
case 32:
4263042639
case "end":
4263142640
return _context3.stop();
4263242641
}
42633-
}, _callee3, this, [[3, 16, 20, 30], [21,, 25, 29]]);
42642+
}, _callee3, this, [[3, 17, 21, 31], [22,, 26, 30]]);
4263442643
}));
4263542644
function iterateFeatures(_x2) {
4263642645
return _iterateFeatures.apply(this, arguments);
@@ -42652,11 +42661,7 @@ var FGBLayer = /*#__PURE__*/function () {
4265242661
break;
4265342662
}
4265442663
_context4.next = 4;
42655-
return FetchRequest.get(this.url, {}, {
42656-
withoutFormatSuffix: true
42657-
}).then(function (response) {
42658-
return response;
42659-
});
42664+
return this._getStream(this.url);
4266042665
case 4:
4266142666
fgbStream = _context4.sent;
4266242667
case 5:
@@ -42677,6 +42682,32 @@ var FGBLayer = /*#__PURE__*/function () {
4267742682
}
4267842683
return _loadData;
4267942684
}()
42685+
}, {
42686+
key: "_getStream",
42687+
value: function () {
42688+
var _getStream2 = FGBLayer_asyncToGenerator( /*#__PURE__*/FGBLayer_regeneratorRuntime().mark(function _callee5(url) {
42689+
return FGBLayer_regeneratorRuntime().wrap(function _callee5$(_context5) {
42690+
while (1) switch (_context5.prev = _context5.next) {
42691+
case 0:
42692+
_context5.next = 2;
42693+
return FetchRequest.get(url, {}, {
42694+
withoutFormatSuffix: true
42695+
}).then(function (response) {
42696+
return response;
42697+
});
42698+
case 2:
42699+
return _context5.abrupt("return", _context5.sent);
42700+
case 3:
42701+
case "end":
42702+
return _context5.stop();
42703+
}
42704+
}, _callee5);
42705+
}));
42706+
function _getStream(_x4) {
42707+
return _getStream2.apply(this, arguments);
42708+
}
42709+
return _getStream;
42710+
}()
4268042711
}, {
4268142712
key: "_containsExtent",
4268242713
value: function _containsExtent(extent1, extent2) {
@@ -46148,6 +46179,9 @@ class GetFeaturesServiceBase extends CommonServiceBase {
4614846179
me.toIndex = params.toIndex;
4614946180
me.maxFeatures = params.maxFeatures;
4615046181
me.hasGeometry = params.hasGeometry;
46182+
if (me.returnContent) {
46183+
firstPara = false;
46184+
}
4615146185
var isValidNumber = me.fromIndex != null && me.toIndex != null && !isNaN(me.fromIndex) && !isNaN(me.toIndex);
4615246186
if (isValidNumber && me.fromIndex >= 0 && me.toIndex >= 0 && !firstPara) {
4615346187
me.url = Util.urlAppend(me.url, `fromIndex=${me.fromIndex}&toIndex=${me.toIndex}`);

dist/mapboxgl/iclient-mapboxgl-es6.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)