Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 1142 → Rev 1107

/trunk/widget/modules/cartopoint/squelettes/scripts/carto.js
49,7 → 49,6
var marqueursCache = new Array();
var zonesCache = new Array();
var requeteChargementPoints;
var urlVars = null;
/*+--------------------------------------------------------------------------------------------------------+*/
// INITIALISATION DU CODE
 
59,7 → 58,6
});
 
function initialiserWidget() {
urlVars = getUrlVars();
definirTailleTitre();
initialiserAffichageCarte();
initialiserAffichagePanneauLateral();
72,19 → 70,6
programmerRafraichissementCarte();
}
 
function getUrlVars()
{
var vars = [], hash;
var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
for(var i = 0; i < hashes.length; i++)
{
hash = hashes[i].split('=');
vars.push(hash[0]);
vars[hash[0]] = hash[1];
}
return vars;
}
 
/*+--------------------------------------------------------------------------------------------------------+*/
// AFFICHAGE GÉNÉRAL
 
219,9 → 204,6
}
 
premierChargement = true;
function doitCentrerCarte() {
return premierChargement && urlVars != null && urlVars.length > 0;
}
 
function rafraichirMarqueurs(data) {
$.each(marqueurs, function(index, marqueur) {
239,7 → 221,7
}
});
if(doitCentrerCarte()) {
if(premierChargement) {
premierChargement = false;
var bounds = new google.maps.LatLngBounds();
var latMax = new google.maps.LatLng(data.stats.coordmax.latMax, data.stats.coordmax.lngMax);