Hacker News new | past | comments | ask | show | jobs | submit login

Here's how we do geolocation:

GMap2.prototype.displayHomeMap = function(geo_locate) { if (geo_locate && google.loader.ClientLocation != null && google.loader.ClientLocation.latitude != 0) { center = [google.loader.ClientLocation.latitude,google.loader.ClientLocation.longitude] zoom = 6 } else { center = [39.25, -96.6669]; //center of the US zoom = 4; } this.updateMap(this.baseMap.nodes, null, center, zoom, null) }




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: