aboutsummaryrefslogtreecommitdiff
path: root/web/app/GeofenceConverter.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-12-20 15:35:39 +0500
committerAbyss777 <abyss@fox5.ru>2016-12-20 15:35:39 +0500
commit13cdf25f6afbd8f77f851bc002021ddc08727eb1 (patch)
tree208c04edf53a623b9fefbcc1933649e12a153dd3 /web/app/GeofenceConverter.js
parent0a465cee9200e0ae297aa9fe7eb9ac78be4636ad (diff)
downloadtrackermap-web-13cdf25f6afbd8f77f851bc002021ddc08727eb1.tar.gz
trackermap-web-13cdf25f6afbd8f77f851bc002021ddc08727eb1.tar.bz2
trackermap-web-13cdf25f6afbd8f77f851bc002021ddc08727eb1.zip
- Migrate to openlayers 3.20.0
- use style.setImage() - style fixes
Diffstat (limited to 'web/app/GeofenceConverter.js')
-rw-r--r--web/app/GeofenceConverter.js2
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);