aboutsummaryrefslogtreecommitdiff
path: root/web/app/view
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-11-08 16:01:59 +0500
committerAbyss777 <abyss@fox5.ru>2016-11-08 16:01:59 +0500
commitdbd7cb8ca62dd7fbc62fbfb9ccc16fc4b8a08d64 (patch)
tree3da2c9dd90dfb851c04546e9f278b14346edd876 /web/app/view
parent7aaa4418b81a9d7686969715198b4b639c263b79 (diff)
downloadetbsa-traccar-web-dbd7cb8ca62dd7fbc62fbfb9ccc16fc4b8a08d64.tar.gz
etbsa-traccar-web-dbd7cb8ca62dd7fbc62fbfb9ccc16fc4b8a08d64.tar.bz2
etbsa-traccar-web-dbd7cb8ca62dd7fbc62fbfb9ccc16fc4b8a08d64.zip
Changed icon styles
Diffstat (limited to 'web/app/view')
-rw-r--r--web/app/view/MapController.js17
1 files changed, 10 insertions, 7 deletions
diff --git a/web/app/view/MapController.js b/web/app/view/MapController.js
index 829a8ea..2f72e81 100644
--- a/web/app/view/MapController.js
+++ b/web/app/view/MapController.js
@@ -309,14 +309,17 @@ Ext.define('Traccar.view.MapController', {
},
resizeMarker: function (style, zoom) {
- var newStyle = new ol.style.Style({
- image: Traccar.DeviceImages.getImageIcon(style.getImage().fill,
- zoom,
- style.getImage().angle,
- style.getImage().category),
- text: style.getText()
+ var image, text;
+ image = Traccar.DeviceImages.getImageIcon(style.getImage().fill,
+ zoom,
+ style.getImage().angle,
+ style.getImage().category);
+ text = style.getText();
+ text.setOffsetY(- image.getSize()[1] / 2 - Traccar.Style.mapTextOffset);
+ return newStyle = new ol.style.Style({
+ image: image,
+ text: text
});
- return newStyle;
},
rotateMarker: function (style, angle) {