aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/app/view/map/GeofenceMap.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/app/view/map/GeofenceMap.js b/web/app/view/map/GeofenceMap.js
index 347b1a9f..cc1b7efe 100644
--- a/web/app/view/map/GeofenceMap.js
+++ b/web/app/view/map/GeofenceMap.js
@@ -89,7 +89,7 @@ Ext.define('Traccar.view.map.GeofenceMap', {
if (this.area) {
geometry = Traccar.GeofenceConverter.wktToGeometry(mapView, this.area);
this.features.push(new ol.Feature(geometry));
- this.map.once('postrender', function (event) {
+ this.map.once('postrender', function () {
mapView.fit(geometry, {
padding: [20, 20, 20, 20]
});