summaryrefslogtreecommitdiff
path: root/api_gmaps.js
diff options
context:
space:
mode:
authorMark Campbell-Smith <mcampbellsmith@gmail.com>2014-04-02 11:50:11 +1100
committerMark Campbell-Smith <mcampbellsmith@gmail.com>2014-04-02 11:50:11 +1100
commit95a61601f3c8d15bdaa8bbd7cbb7eee50595da2e (patch)
treedbe0762dda54aa119421ca0127eaf939de744c29 /api_gmaps.js
parent7e5b03076d4acb4384a67fad9ef021573aa13239 (diff)
downloadRunnerUpLive-95a61601f3c8d15bdaa8bbd7cbb7eee50595da2e.zip
add geolocation for initial map
Diffstat (limited to 'api_gmaps.js')
-rwxr-xr-xapi_gmaps.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/api_gmaps.js b/api_gmaps.js
index 26a787c..2ca65f7 100755
--- a/api_gmaps.js
+++ b/api_gmaps.js
@@ -33,7 +33,7 @@ function init() {
strokeWeight: 2
}
mapOptions = {
- center: new google.maps.LatLng(52.23, 21.01),
+ center: new google.maps.LatLng(geoip_latitude(),geoip_longitude()),
zoom: 8,
mapTypeId: google.maps.MapTypeId.ROADMAP,
scaleControl: true