File tree Expand file tree Collapse file tree 3 files changed +11
-13
lines changed
Expand file tree Collapse file tree 3 files changed +11
-13
lines changed Original file line number Diff line number Diff 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) {
Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments