From d8d63509f32d21fb0457e63bcf7d8d6123971a9b Mon Sep 17 00:00:00 2001 From: Tariq Soliman Date: Tue, 5 Sep 2023 09:19:41 -0700 Subject: [PATCH] #414 IdentifierTool works again with human layer names (#415) --- src/essence/Tools/Identifier/IdentifierTool.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/essence/Tools/Identifier/IdentifierTool.js b/src/essence/Tools/Identifier/IdentifierTool.js index 2f96169a..3fee524e 100644 --- a/src/essence/Tools/Identifier/IdentifierTool.js +++ b/src/essence/Tools/Identifier/IdentifierTool.js @@ -30,7 +30,12 @@ var IdentifierTool = { this.MMWebGISInterface = new interfaceWithMMWebGIS() //Get tool variables - this.vars = L_.getToolVars('identifier') + this.varsRaw = L_.getToolVars('identifier') + this.vars = {} + Object.keys(this.varsRaw).forEach((layerName) => { + this.vars[L_.asLayerUUID(layerName)] = this.varsRaw[layerName] + }) + //Probably always 256 this.tileImageWidth = 256 //x y and zoom of mousedover tile