4 ms·
Here's how we do geolocation: GMap2.prototype.displayHomeMap = function(geo_locate) { if (geo_locate && google.loader.ClientLocation != null && google.loader
by andrewljohnson 18y ago
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)
}