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/MapMarkerController.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/MapMarkerController.js')
-rw-r--r-- | web/app/view/map/MapMarkerController.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/app/view/map/MapMarkerController.js b/web/app/view/map/MapMarkerController.js index bf6b0d49..28f1226e 100644 --- a/web/app/view/map/MapMarkerController.js +++ b/web/app/view/map/MapMarkerController.js @@ -217,7 +217,7 @@ Ext.define('Traccar.view.map.MapMarkerController', { projection = mapView.getProjection(); center = ol.proj.fromLonLat([position.get('longitude'), position.get('latitude')]); pointResolution = ol.proj.getPointResolution(projection, mapView.getResolution(), center); - radius = position.get('accuracy') / ol.proj.METERS_PER_UNIT.m * mapView.getResolution() / pointResolution; + radius = position.get('accuracy') / ol.proj.Units.METERS_PER_UNIT.m * mapView.getResolution() / pointResolution; if (feature) { feature.getGeometry().setCenter(center); |