Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 1141 → Rev 1142

/trunk/widget/modules/cartopoint/squelettes/scripts/carto.js
49,6 → 49,7
var marqueursCache = new Array();
var zonesCache = new Array();
var requeteChargementPoints;
var urlVars = null;
/*+--------------------------------------------------------------------------------------------------------+*/
// INITIALISATION DU CODE
 
58,6 → 59,7
});
 
function initialiserWidget() {
urlVars = getUrlVars();
definirTailleTitre();
initialiserAffichageCarte();
initialiserAffichagePanneauLateral();
70,6 → 72,19
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
 
204,6 → 219,9
}
 
premierChargement = true;
function doitCentrerCarte() {
return premierChargement && urlVars != null && urlVars.length > 0;
}
 
function rafraichirMarqueurs(data) {
$.each(marqueurs, function(index, marqueur) {
221,7 → 239,7
}
});
if(premierChargement) {
if(doitCentrerCarte()) {
premierChargement = false;
var bounds = new google.maps.LatLngBounds();
var latMax = new google.maps.LatLng(data.stats.coordmax.latMax, data.stats.coordmax.lngMax);