diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-02-01 23:55:49 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-02-01 23:55:49 -0800 |
commit | e029756644581346a42f162a6505dda717a8c572 (patch) | |
tree | b18f5d130693ffcad548e04e11429ca4c2468318 /web/app/view/map/BaseMap.js | |
parent | 5ca7ec6840909af2f2ce9f03c3e0eeeadb905420 (diff) | |
download | trackermap-web-e029756644581346a42f162a6505dda717a8c572.tar.gz trackermap-web-e029756644581346a42f162a6505dda717a8c572.tar.bz2 trackermap-web-e029756644581346a42f162a6505dda717a8c572.zip |
Update JavaScript libraries
Diffstat (limited to 'web/app/view/map/BaseMap.js')
-rw-r--r-- | web/app/view/map/BaseMap.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/web/app/view/map/BaseMap.js b/web/app/view/map/BaseMap.js index 015cddd0..f973fb86 100644 --- a/web/app/view/map/BaseMap.js +++ b/web/app/view/map/BaseMap.js @@ -232,7 +232,12 @@ Ext.define('Traccar.view.map.BaseMap', { } } }, function () { + var projection; proj4.defs('BD-MC', '+proj=merc +lon_0=0 +units=m +ellps=clrk66 +no_defs'); proj4.defs('EPSG:3395', '+proj=merc +lon_0=0 +k=1 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs'); - ol.proj.get('EPSG:3395').setExtent([-20037508.342789244, -20037508.342789244, 20037508.342789244, 20037508.342789244]); + ol.proj.proj4.register(proj4); + projection = ol.proj.get('EPSG:3395'); + if (projection) { + projection.setExtent([-20037508.342789244, -20037508.342789244, 20037508.342789244, 20037508.342789244]); + } }); |