Commit e00b2ac0 authored by Raph El's avatar Raph El
Browse files

Hotfix map NaN

parent 0be8effd
......@@ -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)
......
Supports Markdown
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