Yandex.js (743B)
1 import L from 'leaflet'; 2 import '~/lib/leaflet.layer.yandex'; 3 4 L.Layer.Yandex.Map.include({ 5 cloneForPrint: function(options) { 6 return new L.Layer.Yandex.Map({...this.options, ...options, yandexScale: 2}); 7 }, 8 9 getTilesInfo: async function(printOptions) { 10 const tilesInfo = await L.TileLayer.prototype.getTilesInfo.call(this, printOptions); 11 tilesInfo.tileScale = 2; 12 return tilesInfo; 13 }, 14 }); 15 16 L.Layer.Yandex.Sat.include({ 17 cloneForPrint: function(options) { 18 return new L.Layer.Yandex.Sat({...this.options, ...options}); 19 }, 20 }); 21 22 L.Layer.Yandex.Tracks.include({ 23 cloneForPrint: function(options) { 24 return new L.Layer.Yandex.Tracks({...this.options, ...options}); 25 }, 26 });