Commit d486d0ab authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_jio: Display something on the Map by default

  Even if the Map had no markers, display some location meaningful instead a point into the occean
parent 675912f7
......@@ -383,10 +383,16 @@
});
})
.push(function (map_gadget) {
return map_gadget.render({
var map_options = {
zoom : 40,
marker_list : marker_list
});
};
if (marker_list.length === 0) {
map_options.latitude = 48.858370;
map_options.longitude = 2.294481;
map_options.zoom = 0;
}
return map_gadget.render(map_options);
});
});
});
......
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