@@ -12439,13 +12439,15 @@ SuperMap.ElasticSearchService = SuperMap.Class({
1243912439 },
1244012440
1244112441 validateDatas: function (datas) {
12442- var me = this;
12443- if (datas instanceof Array) {
12444- datas.map(function (data) {
12445- me._validateData(data);
12446- });
12447- } else {
12448- me._validateData(data);
12442+ if (!datas) {
12443+ return;
12444+ }
12445+ if (!(datas instanceof Array)) {
12446+ datas = [datas];
12447+ }
12448+ var i, len = datas.length;
12449+ for (i = 0; i < len; i++) {
12450+ this._validateData(datas[i]);
1244912451 }
1245012452 },
1245112453
@@ -49983,7 +49985,7 @@ L.TextSymbolizer = L.Path.extend({
4998349985 this._text = (attributes && this.properties.textField) ?
4998449986 attributes[this.properties.textField] || "" : "";
4998549987 }
49986- options = this.options;
49988+ var options = this.options;
4998749989 this._pxBounds = L.bounds(this._point, this._point);
4998849990 L.Symbolizer.prototype.render.apply(this, [renderer, style]);
4998949991 this.options = L.Util.extend(options, style);
@@ -50033,7 +50035,7 @@ L.Canvas.Renderer.include({
5003350035 if (!this._drawing || layer._empty()) {
5003450036 return;
5003550037 }
50036- container = this.getContainer();
50038+ var container = this.getContainer();
5003750039 var size = this._map.getSize();
5003850040 container.width = size.x;
5003950041 container.height = size.y;
@@ -50460,7 +50462,7 @@ var VectorTile = L.Class.extend({
5046050462 styleOverride = tileLayer._overriddenStyles[styleKey];
5046150463
5046250464 styleOptions = styleOverride ? styleOverride : styleOptions;
50463- styleOptions = (styleOptions instanceof Function) ? styleOptions(feat .properties, coords.z) : styleOptions;
50465+ styleOptions = (styleOptions instanceof Function) ? styleOptions(feature .properties, coords.z) : styleOptions;
5046450466 styleOptions = !(styleOptions instanceof Array) ? [styleOptions] : styleOptions;
5046550467 return styleOptions;
5046650468 },
0 commit comments