Skip to content

Commit

Permalink
#238 working.
Browse files Browse the repository at this point in the history
  • Loading branch information
bm5w committed May 28, 2015
1 parent 3c5d48e commit e077a4b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions app/app/static/js/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@ new L.Control.Zoom({
var lat = 47.568, lng = -122.582;
var temp = 0;
$.get("http://ipinfo.io", function(response) {
temp = response.loc;
temp = temp.split(",");
lat = temp[0]
lng = temp[1]
console.log(lat, lng);
console.log(response);
if (response.loc) {
temp = response.loc.split(",");
lat = temp[0];
lng = temp[1];
console.log(lat, lng);
}
}, "jsonp");

$(document).ready(function() {
Expand Down

0 comments on commit e077a4b

Please sign in to comment.