Skip to content

Commit b47c620

Browse files
committed
Add token config for map. Change analytic account to official one.
1 parent 77d7ca4 commit b47c620

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.env

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ REACT_APP_BULK_EVENT=/api/v1/event/bulk
55
REACT_APP_GET_MAP_TYPE_LISTS=/map-cdn/maps.json
66
REACT_APP_MAP_CDN=/map-cdn/
77

8-
REACT_APP_GET_INFECTED_JSON_DATA=/data/infected.json
8+
REACT_APP_GET_INFECTED_JSON_DATA=/data/infected.json
9+
REACT_APP_MAP_TOKEN=web.VeNZSu3YdgN4YfaaI0AwLeoCRdi8oZ1jeOj6jm5x

public/index.html

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<head>
44
<meta charset="utf-8" />
55
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
6-
<!-- iOS 9 bug fix https://stackoverflow.com/q/33767533 -->
76
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
7+
<meta name="mobile-web-app-capable" content="yes">
88
<meta name="theme-color" content="#000000" />
99
<meta
1010
name="description"
@@ -43,14 +43,13 @@
4343
m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
4444
(window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
4545

46-
ym(61518034, "init", {
46+
ym(61536613, "init", {
4747
clickmap:true,
4848
trackLinks:true,
49-
accurateTrackBounce:true,
50-
webvisor:true
49+
accurateTrackBounce:true
5150
});
5251
</script>
53-
<noscript><div><img src="https://mc.yandex.ru/watch/61518034" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
52+
<noscript><div><img src="https://mc.yandex.ru/watch/61536613" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
5453
<!-- /Yandex.Metrika counter -->
5554
</head>
5655
<body dir="rtl">

src/components/Map/Map.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ export default function Map() {
109109
setMap(
110110
new window.L.Map('map', {
111111
// FIXME CRITICAL set token
112-
// key: process.env.REACT_APP_MAP_TOKEN,
113-
key: 'web.VeNZSu3YdgN4YfaaI0AwLeoCRdi8oZ1jeOj6jm5x',
112+
key: process.env.REACT_APP_MAP_TOKEN,
113+
// key: 'web.VeNZSu3YdgN4YfaaI0AwLeoCRdi8oZ1jeOj6jm5x',
114114
maptype: 'dreamy',
115115
poi: true,
116116
traffic: false,

0 commit comments

Comments
 (0)