Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cto
g1
Commits
4c015e1b
Commit
4c015e1b
authored
Jan 26, 2019
by
Bharat R
👀
Browse files
format code
parent
2f8b0fcc
Pipeline
#74507
passed with stage
in 2 minutes and 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/mapviewer.js
View file @
4c015e1b
...
@@ -188,8 +188,8 @@ MapViewer.prototype.addMismatchLabel = function(mismatch_count, layerName) {
...
@@ -188,8 +188,8 @@ MapViewer.prototype.addMismatchLabel = function(mismatch_count, layerName) {
}
}
//Remove label if already exists
//Remove label if already exists
let
temp_div
=
document
.
getElementById
(
self
.
options
.
id
).
getElementsByClassName
(
layerName
+
'
-mismatch-log
'
)[
0
]
let
temp_div
=
document
.
getElementById
(
self
.
options
.
id
).
getElementsByClassName
(
layerName
+
'
-mismatch-log
'
)[
0
]
if
(
temp_div
)
temp_div
.
parentNode
.
removeChild
(
temp_div
)
if
(
temp_div
)
temp_div
.
parentNode
.
removeChild
(
temp_div
)
//Add New mismatch Label
//Add New mismatch Label
var
div
=
document
.
createElement
(
'
div
'
)
var
div
=
document
.
createElement
(
'
div
'
)
...
@@ -290,12 +290,7 @@ MapViewer.prototype.buildLayer = function (layerName, layerConfig) {
...
@@ -290,12 +290,7 @@ MapViewer.prototype.buildLayer = function (layerName, layerConfig) {
self
.
options
.
layers
[
layerName
]
=
layerConfig
self
.
options
.
layers
[
layerName
]
=
layerConfig
// Remove layer on map, if exists
// Remove layer on map, if exists
if
(
self
.
map
.
hasLayer
(
self
.
gLayers
[
layerName
]))
{
if
(
self
.
map
.
hasLayer
(
self
.
gLayers
[
layerName
]))
self
.
map
.
removeLayer
(
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
'
])
}
}
switch
(
layerConfig
.
type
.
toLowerCase
())
{
switch
(
layerConfig
.
type
.
toLowerCase
())
{
case
'
tile
'
:
case
'
tile
'
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment