Skip to content

Commit

Permalink
Утиочнение алгоритма отбора названия слоя
Browse files Browse the repository at this point in the history
  • Loading branch information
mkgrgis authored Jun 10, 2023
1 parent 76b70cc commit 2fee995
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion explication.js
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ function mapDiv(div, centerGeo, provider, providerName, Z, controls, map_params)
if (controls) {
this.Control = new L.Control.Layers();
for (var i in TileLayers){
var provStr = providerName[i] ?? ((typeof prov === 'string') ? prov : '?');
var provStr = providerName[i] ?? ((typeof prov === 'string') ? prov : (TileLayers[i].options && TileLayers[i].options) ? TileLayers[i].options.id : '?');
this.Control.addBaseLayer(TileLayers[i], provStr);
}
this.map.addControl(this.Control);
Expand Down

0 comments on commit 2fee995

Please sign in to comment.