Skip to content

Commit b171b2d

Browse files
committed
Hide key error message
1 parent bf14e55 commit b171b2d

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/DGCustomization/src/DGMap.BaseLayer.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,20 @@ DG.Map.addInitHook(function() {
1919

2020
this.isErrorWasShown = false;
2121
function handleTileError() {
22-
var errorMessage = DG.DomUtil.create('div', 'dg-error-message');
23-
if (!this.isErrorWasShown) {
24-
errorMessage.innerHTML = 'Your RasterJS API key is invalid. Please contact api@2gis.com to get RasterJS API key.';
22+
// var errorMessage = DG.DomUtil.create('div', 'dg-error-message');
23+
// if (!this.isErrorWasShown) {
24+
// errorMessage.innerHTML = 'Your RasterJS API key is invalid. Please contact api@2gis.com to get RasterJS API key.';
2525

26-
var mapContainer = document.getElementById('map');
26+
// var mapContainer = document.getElementById('map');
2727

28-
if (mapContainer) {
29-
mapContainer.appendChild(errorMessage);
30-
} else {
31-
console.warn('Map container with id "map" not found.');
32-
}
28+
// if (mapContainer) {
29+
// mapContainer.appendChild(errorMessage);
30+
// } else {
31+
// console.warn('Map container with id "map" not found.');
32+
// }
3333

34-
this.isErrorWasShown = true;
35-
}
34+
// this.isErrorWasShown = true;
35+
// }
3636
}
3737

3838
var tileUrl = DG.config.secureProtocol + (DG.Browser.retina ? DG.config.retinaTileServer : DG.config.tileServer);

0 commit comments

Comments
 (0)