diff options
author | Anton Tananaev <anton@traccar.org> | 2022-06-12 09:44:31 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-06-12 09:44:31 -0700 |
commit | 135d60e8308011f52e3ca03c3f69caa2d06aa082 (patch) | |
tree | ee1ba681085af70d2d9c19d164640bb306fd4f77 /modern/src/map | |
parent | 2179dd19dd0dbdded0b62d0d31ba1b3162ee145f (diff) | |
download | trackermap-web-135d60e8308011f52e3ca03c3f69caa2d06aa082.tar.gz trackermap-web-135d60e8308011f52e3ca03c3f69caa2d06aa082.tar.bz2 trackermap-web-135d60e8308011f52e3ca03c3f69caa2d06aa082.zip |
Add AutoNavi map
Diffstat (limited to 'modern/src/map')
-rw-r--r-- | modern/src/map/core/useMapStyles.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modern/src/map/core/useMapStyles.js b/modern/src/map/core/useMapStyles.js index 6dc585b7..a172744b 100644 --- a/modern/src/map/core/useMapStyles.js +++ b/modern/src/map/core/useMapStyles.js @@ -165,6 +165,14 @@ export default () => { attribute: 'hereKey', }, { + id: 'autoNavi', + title: t('mapAutoNavi'), + style: styleCustom( + [1, 2, 3, 4].map((i) => `https://webrd0${i}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}`), + ), + available: true, + }, + { id: 'custom', title: t('mapCustom'), style: styleCustom(customMapUrl), |