Skip to content

Commit 830ede5

Browse files
committed
fix UT
1 parent cca20b2 commit 830ede5

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

dist/iclient9-leaflet.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33053,7 +33053,6 @@ var TileVectorLayer = exports.TileVectorLayer = _VectorGrid.VectorGrid.extend({
3305333053
me.url = url;
3305433054
}
3305533055
this.cartoCSSToLeaflet = new _CartoCSSToLeaflet.CartoCSSToLeaflet(me.url);
33056-
me._initLayerUrl();
3305733056
me.initLayersInfo();
3305833057
if (!me.options.serverCartoCSSStyle && me.options) {
3305933058
me.setClientCartoCSS(me.options.cartoCSS);
@@ -33069,6 +33068,7 @@ var TileVectorLayer = exports.TileVectorLayer = _VectorGrid.VectorGrid.extend({
3306933068
onAdd: function onAdd(map) {
3307033069
this._crs = this.options.crs || map.options.crs;
3307133070
this._map = map;
33071+
this._initLayerUrl();
3307233072
if (this.options.tileTemplate || !this.options.serverCartoCSSStyle) {
3307333073
this._initGrid();
3307433074
}
@@ -33387,14 +33387,13 @@ var TileVectorLayer = exports.TileVectorLayer = _VectorGrid.VectorGrid.extend({
3338733387
},
3338833388

3338933389
_initLayerUrl: function _initLayerUrl() {
33390-
var me = this;
33391-
var options = me.options;
33392-
if (!me.url) {
33390+
var options = this.options;
33391+
if (!this.url) {
3339333392
return;
3339433393
}
3339533394
var format = options.format.toString().toLowerCase();
33396-
me._tileUrl = me.url + "/tileFeature." + format + "?";
33397-
me._tileUrl += me._createURLParam(options);
33395+
this._tileUrl = this.url + "/tileFeature." + format + "?";
33396+
this._tileUrl += this._createURLParam(options);
3339833397
},
3339933398

3340033399
_createURLParam: function _createURLParam(options) {

dist/iclient9-leaflet.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/leaflet/overlay/TileVectorLayer.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ export var TileVectorLayer = VectorGrid.extend({
6464
me.url = url;
6565
}
6666
this.cartoCSSToLeaflet = new CartoCSSToLeaflet(me.url);
67-
me._initLayerUrl();
6867
me.initLayersInfo();
6968
if (!me.options.serverCartoCSSStyle && me.options) {
7069
me.setClientCartoCSS(me.options.cartoCSS);
@@ -80,6 +79,7 @@ export var TileVectorLayer = VectorGrid.extend({
8079
onAdd: function (map) {
8180
this._crs = this.options.crs || map.options.crs;
8281
this._map = map;
82+
this._initLayerUrl();
8383
if (this.options.tileTemplate || !this.options.serverCartoCSSStyle) {
8484
this._initGrid();
8585
}
@@ -393,14 +393,13 @@ export var TileVectorLayer = VectorGrid.extend({
393393
},
394394

395395
_initLayerUrl: function () {
396-
var me = this;
397-
var options = me.options;
398-
if (!me.url) {
396+
var options = this.options;
397+
if (!this.url) {
399398
return;
400399
}
401400
var format = options.format.toString().toLowerCase();
402-
me._tileUrl = me.url + "/tileFeature." + format + "?";
403-
me._tileUrl += me._createURLParam(options);
401+
this._tileUrl = this.url + "/tileFeature." + format + "?";
402+
this._tileUrl += this._createURLParam(options);
404403
},
405404

406405
_createURLParam: function (options) {

0 commit comments

Comments
 (0)