Permalink
Browse files

removing old setCenter

  • Loading branch information...
1 parent 860217c commit f9a3ac025bf58780b2dd0ff6a4c57d45b7454468 @andrewsmedina andrewsmedina committed Aug 16, 2010
Showing with 0 additions and 25 deletions.
  1. +0 −25 wifimap/media/js/spots.js
View
@@ -43,31 +43,6 @@ var SpotManager = {
}
});
},
- /*
- setCenter: function(data) {
-
- var is_chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
-
- if (is_chrome) {
- if (navigator.geolocation) {
- navigator.geolocation.getCurrentPosition(function(position){
- var initialLocation = new google.maps.LatLng(position.coords.latitude, position.coords.longitude);
- Map.map.setCenter(initialLocation);
- SpotManager.afterCentralize(data);
- }, function() {
- Map.map.setCenter(new google.maps.LatLng(data.center_point[1][0], data.center_point[1][1]));
- SpotManager.afterCentralize(data);
- });
- } else {
- Map.map.setCenter(new google.maps.LatLng(data.center_point[1][0], data.center_point[1][1]));
- SpotManager.afterCentralize(data);
- }
- } else {
- Map.map.setCenter(new google.maps.LatLng(data.center_point[1][0], data.center_point[1][1]));
- SpotManager.afterCentralize(data);
- }
-
- },*/
getPointByIp: function(callback) {
$.ajax({

0 comments on commit f9a3ac0

Please sign in to comment.