aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkas <kas@rusgrad.com>2016-10-12 08:28:40 +0500
committerkas <kas@rusgrad.com>2016-10-12 08:28:40 +0500
commit561f459f3386f44c12da315e46b5275ba7d4a3cf (patch)
treed0abcfc085e8467acc71b3bdc1f8982d4cf24e2c
parentd26883a69c8efaf88694ad0b07887461a01a68d9 (diff)
downloadetbsa-traccar-web-561f459f3386f44c12da315e46b5275ba7d4a3cf.tar.gz
etbsa-traccar-web-561f459f3386f44c12da315e46b5275ba7d4a3cf.tar.bz2
etbsa-traccar-web-561f459f3386f44c12da315e46b5275ba7d4a3cf.zip
- Center label
- Removed unnecessary style - Style fixes
-rw-r--r--web/app/view/MapController.js28
1 files changed, 11 insertions, 17 deletions
diff --git a/web/app/view/MapController.js b/web/app/view/MapController.js
index b14d326..c247786 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;