diff options
author | Rafael Guterres <guterresrafael@gmail.com> | 2016-12-21 22:30:52 -0200 |
---|---|---|
committer | Rafael Guterres <guterresrafael@gmail.com> | 2016-12-21 22:30:52 -0200 |
commit | a23b0c9a452f8a06bc781be5c891932096fe5e65 (patch) | |
tree | f92644c27670e0c7f2f210905ee4b0e21916425c /web/app/GeofenceConverter.js | |
parent | eb5089cffdf6a3ed5e29fcce1b525b223ce5fe05 (diff) | |
parent | 19d6e1c9cc916ed4c1ed72fe168909770a657db2 (diff) | |
download | etbsa-traccar-web-a23b0c9a452f8a06bc781be5c891932096fe5e65.tar.gz etbsa-traccar-web-a23b0c9a452f8a06bc781be5c891932096fe5e65.tar.bz2 etbsa-traccar-web-a23b0c9a452f8a06bc781be5c891932096fe5e65.zip |
Merge branch 'master' of https://github.com/tananaev/traccar-web
Diffstat (limited to 'web/app/GeofenceConverter.js')
-rw-r--r-- | web/app/GeofenceConverter.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/app/GeofenceConverter.js b/web/app/GeofenceConverter.js index 9e3c132..0abefbc 100644 --- a/web/app/GeofenceConverter.js +++ b/web/app/GeofenceConverter.js @@ -43,7 +43,7 @@ Ext.define('Traccar.GeofenceConverter', { projection = mapView.getProjection(); center = ol.proj.transform([Number(coordinates[1]), Number(coordinates[0])], 'EPSG:4326', projection); resolutionAtEquator = mapView.getResolution(); - pointResolution = projection.getPointResolution(resolutionAtEquator, center); + pointResolution = ol.proj.getPointResolution(projection, resolutionAtEquator, center); resolutionFactor = resolutionAtEquator / pointResolution; radius = (Number(coordinates[2]) / ol.proj.METERS_PER_UNIT.m) * resolutionFactor; geometry = new ol.geom.Circle(center, radius); |