]> git.parisson.com Git - telemeta.git/commitdiff
center maps on France
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Fri, 26 Feb 2016 09:06:10 +0000 (10:06 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Fri, 26 Feb 2016 09:06:10 +0000 (10:06 +0100)
telemeta/static/telemeta/js/resourcemap.js
telemeta/templates/telemeta/base.html

index 881b7a267f8302f01c5f40005ed0a67ece2ee351..cc55d82ee8fddc7958bb50f43f2e0c245367a377 100644 (file)
@@ -73,7 +73,7 @@ function ResourceMap(list, cfg) {
         var re  = /^resource-/;
         var id  = resourceElement.attr('id').replace(re, '');
         var uri = that.cfg.countryInfoUri.replace('RESOURCEID', id);
-        
+
         $.get(uri, function(data) {
             info.html(data);
             //marker.openInfoWindowHtml(info.get(0));
@@ -99,14 +99,14 @@ function ResourceMap(list, cfg) {
                 that.map.addOverlay(marker);
             }
         });
-    }        
+    }
 
     that.createMap = function() {
         that.log("GMap loaded");
         if (google.maps.BrowserIsCompatible()) {
             that.map = new google.maps.Map2(that.container[0]);
             var bounds = new GLatLngBounds();
-            that.map.setCenter(new GLatLng(0, 0), that.map.getBoundsZoomLevel(bounds)); // France
+            that.map.setCenter(new GLatLng(46.0, 2.0), that.map.getBoundsZoomLevel(bounds)); // France
             that.map.setUIToDefault();
         } else {
             that.log("Browser isn't compatible with GMap ?!");
index 5ef42e8662283c26844d54ebc3f5521a6205bade..79c14cb718ac1e6e8f5d171b9475298828efdb19 100644 (file)
@@ -32,7 +32,6 @@
 
 {% block stylesheets %}
 <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}telemeta/css/telemeta.css" />
-{# <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}bootstrap/dist/css/bootstrap.min.css" />#}
 <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}telemeta/css/bootstrap.css" />
 
 <!--[if IE]>