diff --git a/src/js/manager.js b/src/js/manager.js index 5dd5b28..512d079 100644 --- a/src/js/manager.js +++ b/src/js/manager.js @@ -649,7 +649,7 @@ const olexp = { * @private * @return {boolean} True if item is hidden otherwise false */ - NodeManager.prototype.isHidden = (layer) => { + NodeManager.prototype.isHidden = function(layer) { if (layer instanceof olexp.measure.Overlay) { return true; } diff --git a/src/js/util.js b/src/js/util.js index 5612308..d8c79ee 100644 --- a/src/js/util.js +++ b/src/js/util.js @@ -226,7 +226,7 @@ const olexp = { * @private * @return {object} Object of ol.control objects by key name */ - Util.prototype.getControls = () => { + Util.prototype.getControls = function() { const controls = { fullscreen: new ol.control.FullScreen(), mouseposition: new ol.control.MousePosition({ @@ -276,7 +276,7 @@ const olexp = { * @private * @return {external:ol.Graticule} New graticule based on settings */ - Util.prototype.getGraticule = (map, options) => { + Util.prototype.getGraticule = function(map, options) { const opts = $.extend($.extend({}, options), {color: '#' + options.color}); const graticule = new ol.Graticule({ map, @@ -310,7 +310,7 @@ const olexp = { * @private * @return {object} Object of ol.source objects */ - Util.prototype.getTileTypes = () => { + Util.prototype.getTileTypes = function() { // ================================================== // Define tile types object // --------------------------------------------------