aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/MapController.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-11-08 10:03:18 +0500
committerAbyss777 <abyss@fox5.ru>2016-11-08 10:03:18 +0500
commit97fd53f33b92e334e6094edb340ea551a44d136e (patch)
treeea1601e074b351be8b569debbf531a5374e3abd9 /web/app/view/MapController.js
parent450f4a3a2423c90985603103b10e61a195d0f74f (diff)
downloadtrackermap-web-97fd53f33b92e334e6094edb340ea551a44d136e.tar.gz
trackermap-web-97fd53f33b92e334e6094edb340ea551a44d136e.tar.bz2
trackermap-web-97fd53f33b92e334e6094edb340ea551a44d136e.zip
- Move arrow to file
- Change stroke width - Fix label offset
Diffstat (limited to 'web/app/view/MapController.js')
-rw-r--r--web/app/view/MapController.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/web/app/view/MapController.js b/web/app/view/MapController.js
index 7875e94d..829a8ea5 100644
--- a/web/app/view/MapController.js
+++ b/web/app/view/MapController.js
@@ -278,8 +278,9 @@ Ext.define('Traccar.view.MapController', {
},
getMarkerStyle: function (zoom, color, angle, category) {
+ var image = Traccar.DeviceImages.getImageIcon(color, zoom, angle, category);
return new ol.style.Style({
- image: Traccar.DeviceImages.getImageIcon(color, zoom, angle, category),
+ image: image,
text: new ol.style.Text({
textBaseline: 'bottom',
fill: new ol.style.Fill({
@@ -289,7 +290,7 @@ Ext.define('Traccar.view.MapController', {
color: Traccar.Style.mapTextStrokeColor,
width: Traccar.Style.mapTextStrokeWidth
}),
- offsetY: -Traccar.Style.mapTextOffset,
+ offsetY: - image.getSize()[1] / 2 - Traccar.Style.mapTextOffset,
font : Traccar.Style.mapTextFont
})
});