Browse Source

Don't center the minimap on some hard-coded coordinates, because it's already centered on the current point

Baptiste Jonglez 8 years ago
parent
commit
5c269552be
1 changed files with 0 additions and 2 deletions
  1. 0 2
      panorama/templates/panorama/view.html

+ 0 - 2
panorama/templates/panorama/view.html

@@ -52,8 +52,6 @@
 	var osmUrl='http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png';
 	var osmAttrib='Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors';
 	var osm = new L.TileLayer(osmUrl, {attribution: osmAttrib});		
-	// start the map in Grenoble
-	map.setView(new L.LatLng(45.1842, 5.7218),13);
 	map.addLayer(osm);
 
 	L.marker([{{ panorama.latitude }}, {{ panorama.longitude }}]).addTo(map);