diff --git a/src/DGCustomization/src/DGMap.BaseLayer.js b/src/DGCustomization/src/DGMap.BaseLayer.js index c8ea7260..7ff86aed 100644 --- a/src/DGCustomization/src/DGMap.BaseLayer.js +++ b/src/DGCustomization/src/DGMap.BaseLayer.js @@ -18,22 +18,22 @@ DG.Map.addInitHook(function() { var apiKey = this.options.key || DG.config.key; this.isErrorWasShown = false; - function handleTileError() { - var errorMessage = DG.DomUtil.create('div', 'dg-error-message'); - if (!this.isErrorWasShown) { - errorMessage.innerHTML = 'Your RasterJS API key is invalid. Please contact api@2gis.com to get RasterJS API key.'; + // function handleTileError() { + // var errorMessage = DG.DomUtil.create('div', 'dg-error-message'); + // if (!this.isErrorWasShown) { + // errorMessage.innerHTML = 'Your RasterJS API key is invalid. Please contact api@2gis.com to get RasterJS API key.'; - var mapContainer = document.getElementById('map'); + // var mapContainer = document.getElementById('map'); - if (mapContainer) { - mapContainer.appendChild(errorMessage); - } else { - console.warn('Map container with id "map" not found.'); - } + // if (mapContainer) { + // mapContainer.appendChild(errorMessage); + // } else { + // console.warn('Map container with id "map" not found.'); + // } - this.isErrorWasShown = true; - } - } + // this.isErrorWasShown = true; + // } + // } var tileUrl = DG.config.secureProtocol + (DG.Browser.retina ? DG.config.retinaTileServer : DG.config.tileServer); var arabicTileUrl = DG.config.secureProtocol + @@ -85,7 +85,7 @@ DG.Map.addInitHook(function() { } } - this.baseLayer.on('tileerror', handleTileError); + // this.baseLayer.on('tileerror', handleTileError); updateTileUrl.call(this);