diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-02-02 13:10:50 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-02-02 13:10:50 -0800 |
commit | 05b555c6c8539f35c1caf3b1f4e252146f1e7d38 (patch) | |
tree | 23ef8a8dd2ba3f80567c03c9073ba159ef55ee5e /web | |
parent | fe47299d6cc02a4e43a1d2f3a788897be8a6f5ce (diff) | |
download | trackermap-web-05b555c6c8539f35c1caf3b1f4e252146f1e7d38.tar.gz trackermap-web-05b555c6c8539f35c1caf3b1f4e252146f1e7d38.tar.bz2 trackermap-web-05b555c6c8539f35c1caf3b1f4e252146f1e7d38.zip |
Fix lint issuesv4.3
Diffstat (limited to 'web')
-rw-r--r-- | web/app/GeofenceConverter.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/app/GeofenceConverter.js b/web/app/GeofenceConverter.js index 1f6ad377..688f2233 100644 --- a/web/app/GeofenceConverter.js +++ b/web/app/GeofenceConverter.js @@ -68,14 +68,14 @@ Ext.define('Traccar.GeofenceConverter', { }, geometryToWkt: function (projection, geometry) { - var result, i, center, radius, edgeCoordinate, earthSphere, groundRadius, points; + var result, i, center, radius, edgeCoordinate, groundRadius, points; if (geometry instanceof ol.geom.Circle) { center = geometry.getCenter(); radius = geometry.getRadius(); edgeCoordinate = [center[0] + radius, center[1]]; center = ol.proj.transform(center, projection, 'EPSG:4326'); groundRadius = ol.sphere.getDistance( - center, ol.proj.transform(edgeCoordinate, projection, 'EPSG:4326'), 6378137) + center, ol.proj.transform(edgeCoordinate, projection, 'EPSG:4326'), 6378137); result = 'CIRCLE ('; result += center[1] + ' ' + center[0] + ', '; result += groundRadius.toFixed(1) + ')'; |