From 32819a0f985b1a9719f94ea31d850d0442b26866 Mon Sep 17 00:00:00 2001 From: Piotr Gawron <piotr.gawron@uni.lu> Date: Mon, 23 Jul 2018 17:43:18 +0200 Subject: [PATCH] alt text and title set to the custom icon in the left bottom corner --- frontend-js/src/main/js/map/CustomMap.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend-js/src/main/js/map/CustomMap.js b/frontend-js/src/main/js/map/CustomMap.js index 76e1d04497..949488ace5 100644 --- a/frontend-js/src/main/js/map/CustomMap.js +++ b/frontend-js/src/main/js/map/CustomMap.js @@ -8,6 +8,7 @@ var Functions = require('../Functions'); var AbstractCustomMap = require('./AbstractCustomMap'); var Alias = require('./data/Alias'); var CommentDialog = require('../gui/CommentDialog'); +var ConfigurationType = require('../ConfigurationType'); var ControlType = require('./ControlType'); var CustomMapOptions = require('./CustomMapOptions'); var GuiConnector = require('../GuiConnector'); @@ -99,7 +100,7 @@ CustomMap.prototype.init = function () { // noinspection SpellCheckingInspection self.getMapCanvas().triggerListeners('maptypeid_changed'), self.getMapCanvas().triggerListeners('projection_changed') - ]).then(function() { + ]).then(function () { // center map and zoom in to fit into browser window if there is no // information about coordinates in the session @@ -139,6 +140,8 @@ CustomMap.prototype.init = function () { url = GuiConnector.getImgPrefix() + url; } logo2.src = url; + logo2.setAttribute('title', self.getConfiguration().getOption(ConfigurationType.LOGO_TEXT).getValue()); + logo2.setAttribute('alt', self.getConfiguration().getOption(ConfigurationType.LOGO_TEXT).getValue()); }); }; -- GitLab