aboutsummaryrefslogtreecommitdiff
path: root/web/app
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-02-02 13:10:50 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2019-02-02 13:10:50 -0800
commit05b555c6c8539f35c1caf3b1f4e252146f1e7d38 (patch)
tree23ef8a8dd2ba3f80567c03c9073ba159ef55ee5e /web/app
parentfe47299d6cc02a4e43a1d2f3a788897be8a6f5ce (diff)
downloadetbsa-traccar-web-05b555c6c8539f35c1caf3b1f4e252146f1e7d38.tar.gz
etbsa-traccar-web-05b555c6c8539f35c1caf3b1f4e252146f1e7d38.tar.bz2
etbsa-traccar-web-05b555c6c8539f35c1caf3b1f4e252146f1e7d38.zip
Fix lint issues
Diffstat (limited to 'web/app')
-rw-r--r--web/app/GeofenceConverter.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/app/GeofenceConverter.js b/web/app/GeofenceConverter.js
index 1f6ad37..688f223 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) + ')';