Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

highAccuracy

  • Loading branch information...
commit a06245ec4b4fe06803cebe8a9cb7b866c685259c 1 parent 795e2fb
@tsumekoara authored
View
3  app/assets/javascripts/location.js
@@ -4,7 +4,8 @@ window.onload = appInit;
function appInit(){
displayPanel = document.getElementById("displayPanel");
- navigator.geolocation.getCurrentPosition(showLocation, locationError);
+ var locationOption = {enableHighAccuracy:true};
+ navigator.geolocation.getCurrentPosition(showLocation, locationError, locationOption);
}
function showLocation(position){
View
3  app/assets/javascripts/location.js.coffee
@@ -1,3 +0,0 @@
-# Place all the behaviors and hooks related to the matching controller here.
-# All this logic will automatically be available in application.js.
-# You can use CoffeeScript in this file: http://coffeescript.org/
View
4 app/assets/javascripts/restaurant.js
@@ -9,9 +9,9 @@ window.onload = appInit;
function appInit(){
displayPanel = document.getElementById("displayPanel");
-
infoPanel = document.getElementById("infoPanel");
- navigator.geolocation.getCurrentPosition(showLocation, locationError);
+ var locationOption = {enableHighAccuracy:true};
+ navigator.geolocation.getCurrentPosition(showLocation, locationError, locationOption);
}
Please sign in to comment.
Something went wrong with that request. Please try again.