deleteOverlays(); clearKmls(contourCom); bounds = new google.maps.LatLngBounds(); var markerLatLng = new google.maps.LatLng(parseFloat(43.1162986755371),parseFloat(3.10723996162415)); var image = 'IMG/rubon4.png?1455706044'; var icone = new google.maps.MarkerImage(image, new google.maps.Size(25, 25), new google.maps.Point(0,0), new google.maps.Point(12.5, 12.5) ); marker_104 = new google.maps.Marker({ position: markerLatLng, map: map, icon: icone, title: '' }); markersArray.push(marker_104); google.maps.event.addListener(marker_104, 'click', function() { $.ajax({ type: "GET", url: 'spip.php?page=ajax-infobulle', data: 'id_article=104', success:function(responseText){ contenu_html = responseText; }, complete:function(){ if(openInfo) openInfo.close(); var infowindow_104 = new google.maps.InfoWindow({ content: contenu_html }); openInfo = infowindow_104; infowindow_104.open(map,marker_104); } }); }); bounds.extend(markerLatLng); showKmls(contourCom['com_104']); showOverlays(); map.fitBounds(bounds); map.panTo(new google.maps.LatLng(parseFloat(43.1162986755371),parseFloat(3.10723996162415)));