Commit 4c015e1b authored by Bharat R's avatar Bharat R 👀

format code

parent 2f8b0fcc
Pipeline #74507 passed with stage
in 2 minutes and 16 seconds
......@@ -188,8 +188,8 @@ MapViewer.prototype.addMismatchLabel = function(mismatch_count, layerName) {
}
//Remove label if already exists
let temp_div = document.getElementById(self.options.id).getElementsByClassName(layerName+'-mismatch-log')[0]
if(temp_div) temp_div.parentNode.removeChild(temp_div)
let temp_div = document.getElementById(self.options.id).getElementsByClassName(layerName + '-mismatch-log')[0]
if (temp_div) temp_div.parentNode.removeChild(temp_div)
//Add New mismatch Label
var div = document.createElement('div')
......@@ -290,12 +290,7 @@ MapViewer.prototype.buildLayer = function (layerName, layerConfig) {
self.options.layers[layerName] = layerConfig
// Remove layer on map, if exists
if (self.map.hasLayer(self.gLayers[layerName])) {
self.map.removeLayer(self.gLayers[layerName])
if(layerName + 'mismatch' in self.gLayers) {
document.querySelector(self.map.id).parentNode.removeChild(self.gLayers[layerName+'mismatch'])
}
}
if (self.map.hasLayer(self.gLayers[layerName])) self.map.removeLayer(self.gLayers[layerName])
switch (layerConfig.type.toLowerCase()) {
case 'tile':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment