deleteOverlays(); clearKmls(contourCom); bounds = new google.maps.LatLngBounds(); var markerLatLng = new google.maps.LatLng(parseFloat(43.1026000976562),parseFloat(3.08483004570007)); var image = 'IMG/rubon6.png?1455706041'; 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_160 = new google.maps.Marker({ position: markerLatLng, map: map, icon: icone, title: '' }); markersArray.push(marker_160); google.maps.event.addListener(marker_160, 'click', function() { $.ajax({ type: "GET", url: 'spip.php?page=ajax-infobulle', data: 'id_article=160', success:function(responseText){ contenu_html = responseText; }, complete:function(){ if(openInfo) openInfo.close(); var infowindow_160 = new google.maps.InfoWindow({ content: contenu_html }); openInfo = infowindow_160; infowindow_160.open(map,marker_160); } }); }); bounds.extend(markerLatLng); showKmls(contourCom['com_160']); var markerLatLng = new google.maps.LatLng(parseFloat(43.1321983337402),parseFloat(3.13872003555298)); var image = 'IMG/rubon6.png?1455706041'; 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_161 = new google.maps.Marker({ position: markerLatLng, map: map, icon: icone, title: '' }); markersArray.push(marker_161); google.maps.event.addListener(marker_161, 'click', function() { $.ajax({ type: "GET", url: 'spip.php?page=ajax-infobulle', data: 'id_article=161', success:function(responseText){ contenu_html = responseText; }, complete:function(){ if(openInfo) openInfo.close(); var infowindow_161 = new google.maps.InfoWindow({ content: contenu_html }); openInfo = infowindow_161; infowindow_161.open(map,marker_161); } }); }); bounds.extend(markerLatLng); showKmls(contourCom['com_161']); var markerLatLng = new google.maps.LatLng(parseFloat(43.1375007629395),parseFloat(3.14438009262085)); var image = 'IMG/rubon6.png?1455706041'; 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_162 = new google.maps.Marker({ position: markerLatLng, map: map, icon: icone, title: '' }); markersArray.push(marker_162); google.maps.event.addListener(marker_162, 'click', function() { $.ajax({ type: "GET", url: 'spip.php?page=ajax-infobulle', data: 'id_article=162', success:function(responseText){ contenu_html = responseText; }, complete:function(){ if(openInfo) openInfo.close(); var infowindow_162 = new google.maps.InfoWindow({ content: contenu_html }); openInfo = infowindow_162; infowindow_162.open(map,marker_162); } }); }); bounds.extend(markerLatLng); showKmls(contourCom['com_162']); var markerLatLng = new google.maps.LatLng(parseFloat(43.1384010314941),parseFloat(3.14531993865967)); var image = 'IMG/rubon6.png?1455706041'; 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_163 = new google.maps.Marker({ position: markerLatLng, map: map, icon: icone, title: '' }); markersArray.push(marker_163); google.maps.event.addListener(marker_163, 'click', function() { $.ajax({ type: "GET", url: 'spip.php?page=ajax-infobulle', data: 'id_article=163', success:function(responseText){ contenu_html = responseText; }, complete:function(){ if(openInfo) openInfo.close(); var infowindow_163 = new google.maps.InfoWindow({ content: contenu_html }); openInfo = infowindow_163; infowindow_163.open(map,marker_163); } }); }); bounds.extend(markerLatLng); showKmls(contourCom['com_163']); var markerLatLng = new google.maps.LatLng(parseFloat(43.1366004943848),parseFloat(3.13762998580933)); var image = 'IMG/rubon6.png?1455706041'; 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_164 = new google.maps.Marker({ position: markerLatLng, map: map, icon: icone, title: '' }); markersArray.push(marker_164); google.maps.event.addListener(marker_164, 'click', function() { $.ajax({ type: "GET", url: 'spip.php?page=ajax-infobulle', data: 'id_article=164', success:function(responseText){ contenu_html = responseText; }, complete:function(){ if(openInfo) openInfo.close(); var infowindow_164 = new google.maps.InfoWindow({ content: contenu_html }); openInfo = infowindow_164; infowindow_164.open(map,marker_164); } }); }); bounds.extend(markerLatLng); showKmls(contourCom['com_164']); showOverlays(); map.fitBounds(bounds);