Skip to content

Commit bf14e55

Browse files
authored
Release 4.0.2 (#583)
* release 4.0.2
1 parent ef9d29d commit bf14e55

File tree

6 files changed

+6
-5
lines changed

6 files changed

+6
-5
lines changed

app/loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
var isJSRequested = false;
55
var rejects = [];
6-
var version = 'v4.0.1';
6+
var version = 'v4.0.2';
77
var baseURL = '__BASE_URL__';
88
var query = __QUERY__;
99
var isLazy = query.lazy === 'true';

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}",

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "2gis-maps",
3-
"version": "4.0.1",
3+
"version": "4.0.2",
44
"description": "Interactive 2GIS maps API, based on Leaflet",
55
"license": "SEE LICENSE IN FILE",
66
"keywords": [

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)