From 9ff94a93511d2975ac0e1dcbe4bf4439c3c60a85 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Fri, 26 Feb 2016 10:06:10 +0100 Subject: [PATCH] center maps on France --- telemeta/static/telemeta/js/resourcemap.js | 6 +++--- telemeta/templates/telemeta/base.html | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/telemeta/static/telemeta/js/resourcemap.js b/telemeta/static/telemeta/js/resourcemap.js index 881b7a26..cc55d82e 100644 --- a/telemeta/static/telemeta/js/resourcemap.js +++ b/telemeta/static/telemeta/js/resourcemap.js @@ -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 ?!"); diff --git a/telemeta/templates/telemeta/base.html b/telemeta/templates/telemeta/base.html index 5ef42e86..79c14cb7 100644 --- a/telemeta/templates/telemeta/base.html +++ b/telemeta/templates/telemeta/base.html @@ -32,7 +32,6 @@ {% block stylesheets %} -{# #}