diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-12-21 23:59:16 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-21 23:59:16 +1300 |
commit | 19d6e1c9cc916ed4c1ed72fe168909770a657db2 (patch) | |
tree | c802adb481ee39ad5bb31c479bbf6266d2d23099 /web/app/GeofenceConverter.js | |
parent | 77e45e57c92cb03688a2494b81dfe66969c6edbd (diff) | |
parent | d3d8e6aed0f880a0077a5aa0b5bd2fcd189a5525 (diff) | |
download | trackermap-web-19d6e1c9cc916ed4c1ed72fe168909770a657db2.tar.gz trackermap-web-19d6e1c9cc916ed4c1ed72fe168909770a657db2.tar.bz2 trackermap-web-19d6e1c9cc916ed4c1ed72fe168909770a657db2.zip |
Merge pull request #364 from Abyss777/ol_3.20.0
Migrate to openlayers 3.20.0
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 9e3c1327..0abefbce 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); |