diff options
author | kas <kas@rusgrad.com> | 2016-10-12 08:28:40 +0500 |
---|---|---|
committer | kas <kas@rusgrad.com> | 2016-10-12 08:28:40 +0500 |
commit | 561f459f3386f44c12da315e46b5275ba7d4a3cf (patch) | |
tree | d0abcfc085e8467acc71b3bdc1f8982d4cf24e2c /web/app | |
parent | d26883a69c8efaf88694ad0b07887461a01a68d9 (diff) | |
download | trackermap-web-561f459f3386f44c12da315e46b5275ba7d4a3cf.tar.gz trackermap-web-561f459f3386f44c12da315e46b5275ba7d4a3cf.tar.bz2 trackermap-web-561f459f3386f44c12da315e46b5275ba7d4a3cf.zip |
- Center label
- Removed unnecessary style
- Style fixes
Diffstat (limited to 'web/app')
-rw-r--r-- | web/app/view/MapController.js | 28 |
1 files changed, 11 insertions, 17 deletions
diff --git a/web/app/view/MapController.js b/web/app/view/MapController.js index b14d3269..c2477860 100644 --- a/web/app/view/MapController.js +++ b/web/app/view/MapController.js @@ -69,15 +69,15 @@ Ext.define('Traccar.view.MapController', { xtype: 'header', title: Strings.mapTitle, items: [{ - xtype: 'button', - handler: 'showGeofences', - reference: 'showGeofencesButton', - glyph: 'xf21d@FontAwesome', - enableToggle: true, - pressed: true, - tooltip: Strings.sharedGeofences, - tooltipType: 'title' - }] + xtype: 'button', + handler: 'showGeofences', + reference: 'showGeofencesButton', + glyph: 'xf21d@FontAwesome', + enableToggle: true, + pressed: true, + tooltip: Strings.sharedGeofences, + tooltipType: 'title' + }] }; }, @@ -353,15 +353,8 @@ Ext.define('Traccar.view.MapController', { color: Traccar.Style.mapGeofenceColor, width: Traccar.Style.mapGeofenceWidth }), - image: new ol.style.Circle({ - radius: Traccar.Style.mapGeofenceRadius, - fill: new ol.style.Fill({ - color: Traccar.Style.mapGeofenceColor - }) - }), text: new ol.style.Text({ text: label, - textBaseline: 'bottom', fill: new ol.style.Fill({ color: Traccar.Style.mapGeofenceTextColor }), @@ -377,7 +370,8 @@ Ext.define('Traccar.view.MapController', { showGeofences: function () { if (this.lookupReference('showGeofencesButton').pressed) { Ext.getStore('Geofences').each(function (geofence) { - var feature = new ol.Feature(Traccar.GeofenceConverter.wktToGeometry(this.getView().getMapView(), geofence.get('area'))); + var feature = new ol.Feature(Traccar.GeofenceConverter + .wktToGeometry(this.getView().getMapView(), geofence.get('area'))); feature.setStyle(this.getGeofenceStyle(geofence.get('name'))); this.getView().getGeofencesSource().addFeature(feature); return true; |