diff options
author | Edward Valley <ed.valley@yandex.com> | 2019-07-12 23:53:29 -0400 |
---|---|---|
committer | Edward Valley <ed.valley@yandex.com> | 2019-07-12 23:53:29 -0400 |
commit | e6013751d88cbfaac6c03a070d88cfd5c3e16921 (patch) | |
tree | 1b509acddae033e38f699de01b5803e63d380008 /web/app/view | |
parent | 74045badac73aae991301e65d119109ee7d5d46e (diff) | |
download | trackermap-web-e6013751d88cbfaac6c03a070d88cfd5c3e16921.tar.gz trackermap-web-e6013751d88cbfaac6c03a070d88cfd5c3e16921.tar.bz2 trackermap-web-e6013751d88cbfaac6c03a070d88cfd5c3e16921.zip |
Add support for ArcGIS REST map services
Diffstat (limited to 'web/app/view')
-rw-r--r-- | web/app/view/map/BaseMap.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/web/app/view/map/BaseMap.js b/web/app/view/map/BaseMap.js index 4f0c8d48..0b39ae33 100644 --- a/web/app/view/map/BaseMap.js +++ b/web/app/view/map/BaseMap.js @@ -38,7 +38,7 @@ Ext.define('Traccar.view.map.BaseMap', { bingKey = server.get('bingKey'); switch (type) { - case 'custom': + case 'customXyzFormat': layer = new ol.layer.Tile({ source: new ol.source.XYZ({ url: Ext.String.htmlDecode(server.get('mapUrl')), @@ -46,6 +46,13 @@ Ext.define('Traccar.view.map.BaseMap', { }) }); break; + case 'customArcgisRest': + layer = new ol.layer.Tile({ + source: new ol.source.TileArcGISRest({ + url: Ext.String.htmlDecode(server.get('mapUrl')) + }) + }); + break; case 'bingRoad': layer = new ol.layer.Tile({ source: new ol.source.BingMaps({ |