From c19e4e9de58457d1e0fcdd52b071d943fbb630a8 Mon Sep 17 00:00:00 2001 From: Piotr Gawron <piotr.gawron@uni.lu> Date: Mon, 30 Apr 2018 13:08:38 +0200 Subject: [PATCH] abstract method added to AbstractInfoWindow --- frontend-js/src/main/js/map/CustomMap.js | 4 ++-- .../src/main/js/map/window/AbstractInfoWindow.js | 14 ++++++++++++++ .../src/main/js/map/window/AliasInfoWindow.js | 2 +- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/frontend-js/src/main/js/map/CustomMap.js b/frontend-js/src/main/js/map/CustomMap.js index 25f134c531..c9d013b11f 100644 --- a/frontend-js/src/main/js/map/CustomMap.js +++ b/frontend-js/src/main/js/map/CustomMap.js @@ -875,7 +875,7 @@ CustomMap.prototype.updateInfoWindowForIdentifiedElement = function (identifiedE * * @param {Alias} alias * for which overlay data will be returned - * @param {Array} general + * @param {Object.<string,boolean>} general * if true then all elements will be returned, if false then only ones * available right now in the overlay * @returns {Promise} of the data from all {OverlayCollection} for a given alias @@ -916,7 +916,7 @@ CustomMap.prototype.getOverlayDataForPoint = function (point, general) { * Returns data from all {OverlayCollection} for element identified by the * parameter * - * @param {Array} general + * @param {Object.<string,boolean>} general * @param {IdentifiedElement} identifiedElement * for which overlay data will be returned * @returns {Promise} of data from all {OverlayCollection} for a given diff --git a/frontend-js/src/main/js/map/window/AbstractInfoWindow.js b/frontend-js/src/main/js/map/window/AbstractInfoWindow.js index 4f76c60857..3c64acbc06 100644 --- a/frontend-js/src/main/js/map/window/AbstractInfoWindow.js +++ b/frontend-js/src/main/js/map/window/AbstractInfoWindow.js @@ -411,6 +411,20 @@ AbstractInfoWindow.prototype.createOverlaysDiv = function () { }); }; +// noinspection JSUnusedLocalSymbols +/** + * Returns array with data taken from all known {@link AbstractDbOverlay}. + * + * @param {Object.<string,boolean>} general + * if true then all elements will be returned, if false then only ones + * available right now in the overlay + * + * @returns {Promise} array with data from {@link AbstractDbOverlay} + */ +AbstractInfoWindow.prototype.getOverlaysData = function (general) { + throw new Error("Not implemented"); +}; + /** * Abstract method (to be implemented by subclasses) for updating content. * diff --git a/frontend-js/src/main/js/map/window/AliasInfoWindow.js b/frontend-js/src/main/js/map/window/AliasInfoWindow.js index bf6596b969..0dcca178fb 100644 --- a/frontend-js/src/main/js/map/window/AliasInfoWindow.js +++ b/frontend-js/src/main/js/map/window/AliasInfoWindow.js @@ -210,7 +210,7 @@ AliasInfoWindow.prototype.createContentDiv = function () { /** * Returns array with data taken from all known {@link AbstractDbOverlay}. * - * @param {boolean} general + * @param {Object.<string,boolean>} general * if true then all elements will be returned, if false then only ones * available right now in the overlay * -- GitLab