Skip to content

Commit 44ec1b3

Browse files
committed
release 4.0.2
1 parent ef9d29d commit 44ec1b3

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

app/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
worldCopyJump: true,
2929
zoomControl: false,
3030
fullscreenControl: false,
31-
key: DG.config.key || 'Your API access key',
31+
key: DG.config.key,
3232
};
3333
var query = parseQuery();
3434
var map = window.map = DG.map('map', getMapOptions(query, options));

config.main.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"secureProtocol": "https:",
3333

3434
"baseUrl": "//maps.api.2gis.ru/2.0",
35+
"key": "",
3536

3637
"tileServer": "//tile{s}.maps.2gis.com/v2/tiles?x={x}&y={y}&z={z}&v=1&ts=online_sd&key={key}",
3738
"retinaTileServer": "//tile{s}.maps.2gis.com/v2/tiles?x={x}&y={y}&z={z}&v=1&ts=online_hd&key={key}",

src/DGAttribution/src/DGAttribution.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ DG.Control.Attribution.include({
111111
map._copyright = true;
112112
this._first = true;
113113
}
114-
this._key = map.options.key;
114+
this._key = map.options.key || DG.config.key;
115115
this._logotype = map.options.logotype;
116116
this._open2gis = this._getLink('open_link')
117117

src/DGCustomization/src/DGMap.BaseLayer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ DG.Map.addInitHook(function() {
1515
}
1616
});
1717

18-
var apiKey = this.options.key;
18+
var apiKey = this.options.key || DG.config.key;
1919

2020
this.isErrorWasShown = false;
2121
function handleTileError() {

0 commit comments

Comments
 (0)