Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Albert Beltran
map
Commits
e00b2ac0
Commit
e00b2ac0
authored
Dec 04, 2018
by
Raph El
Browse files
Hotfix map NaN
parent
0be8effd
Changes
1
Hide whitespace changes
Inline
Side-by-side
assets/js/map.js
View file @
e00b2ac0
...
...
@@ -52,8 +52,11 @@ var mapObj = {
if
(
mapObj
.
arrayBounds
.
length
>
0
){
mapObj
.
bounds
=
L
.
bounds
(
mapObj
.
arrayBounds
);
var
point
=
mapObj
.
bounds
.
getCenter
();
//console.log("POINT", point);
mapObj
.
map
.
panTo
([
point
.
x
,
point
.
y
]);
console
.
log
(
"
POINT
"
,
point
);
if
(
!
isNaN
(
point
.
x
)
&&
!
isNaN
(
point
.
y
)){
mapObj
.
map
.
panTo
([
point
.
x
,
point
.
y
]);
}
}
if
(
mapObj
.
activeCluster
===
true
)
...
...
Write
Preview
Supports
Markdown
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