Commit b5413625 authored by Paul Brown's avatar Paul Brown

Merge pull request #1184 from t4ec/fix_location

Fallback to default location if it was not received from external service
parents 4b7828a1 f7aee74a
......@@ -151,6 +151,8 @@
// look up user's location by IP address
$.getJSON("http://ip-api.com/json/?callback=?", function(data) {
map.setView([data["lat"], data["lon"]], 12);
}).fail(function() {
map.setView([0, 0], 1)
});
}
......
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