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