Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 1106 → Rev 1107

/trunk/widget/modules/cartopoint/squelettes/scripts/carto.js
141,7 → 141,7
if (urlsLimitesCommunales != null) {
for (urlId in urlsLimitesCommunales) {
var url = urlsLimitesCommunales[urlId];
ctaLayer = new google.maps.KmlLayer(url, {preserveViewport: false});
ctaLayer = new google.maps.KmlLayer(url, {preserveViewport: true});
ctaLayer.setMap(map);
}
}
203,6 → 203,8
$('#zone-chargement-point').css('display','none');
}
 
premierChargement = true;
 
function rafraichirMarqueurs(data) {
$.each(marqueurs, function(index, marqueur) {
marqueur.setMap(null);
218,6 → 220,16
marqueurs.push(nouveauMarqueur);
}
});
if(premierChargement) {
premierChargement = false;
var bounds = new google.maps.LatLngBounds();
var latMax = new google.maps.LatLng(data.stats.coordmax.latMax, data.stats.coordmax.lngMax);
var latMin = new google.maps.LatLng(data.stats.coordmax.latMin, data.stats.coordmax.lngMin);
bounds.extend(latMax);
bounds.extend(latMin);
rendrePointsVisibles(bounds);
}
}
 
function creerMarqueur(station) {