deleteOverlays(); clearKmls(contourCom); bounds = new google.maps.LatLngBounds(); var markerLatLng = new google.maps.LatLng(parseFloat(43.0973014831543),parseFloat(3.1077299118042)); 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_154 = new google.maps.Marker({ position: markerLatLng, map: map, icon: icone, title: '' }); markersArray.push(marker_154); google.maps.event.addListener(marker_154, 'click', function() { $.ajax({ type: "GET", url: 'spip.php?page=ajax-infobulle', data: 'id_article=154', success:function(responseText){ contenu_html = responseText; }, complete:function(){ if(openInfo) openInfo.close(); var infowindow_154 = new google.maps.InfoWindow({ content: contenu_html }); openInfo = infowindow_154; infowindow_154.open(map,marker_154); } }); }); bounds.extend(markerLatLng); showKmls(contourCom['com_154']); var markerLatLng = new google.maps.LatLng(parseFloat(43.1002998352051),parseFloat(3.11372995376587)); 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_155 = new google.maps.Marker({ position: markerLatLng, map: map, icon: icone, title: '' }); markersArray.push(marker_155); google.maps.event.addListener(marker_155, 'click', function() { $.ajax({ type: "GET", url: 'spip.php?page=ajax-infobulle', data: 'id_article=155', success:function(responseText){ contenu_html = responseText; }, complete:function(){ if(openInfo) openInfo.close(); var infowindow_155 = new google.maps.InfoWindow({ content: contenu_html }); openInfo = infowindow_155; infowindow_155.open(map,marker_155); } }); }); bounds.extend(markerLatLng); showKmls(contourCom['com_155']); var markerLatLng = new google.maps.LatLng(parseFloat(43.1063995361328),parseFloat(3.1180100440979)); 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_156 = new google.maps.Marker({ position: markerLatLng, map: map, icon: icone, title: '' }); markersArray.push(marker_156); google.maps.event.addListener(marker_156, 'click', function() { $.ajax({ type: "GET", url: 'spip.php?page=ajax-infobulle', data: 'id_article=156', success:function(responseText){ contenu_html = responseText; }, complete:function(){ if(openInfo) openInfo.close(); var infowindow_156 = new google.maps.InfoWindow({ content: contenu_html }); openInfo = infowindow_156; infowindow_156.open(map,marker_156); } }); }); bounds.extend(markerLatLng); showKmls(contourCom['com_156']); var markerLatLng = new google.maps.LatLng(parseFloat(43.1035003662109),parseFloat(3.09478998184204)); 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_157 = new google.maps.Marker({ position: markerLatLng, map: map, icon: icone, title: '' }); markersArray.push(marker_157); google.maps.event.addListener(marker_157, 'click', function() { $.ajax({ type: "GET", url: 'spip.php?page=ajax-infobulle', data: 'id_article=157', success:function(responseText){ contenu_html = responseText; }, complete:function(){ if(openInfo) openInfo.close(); var infowindow_157 = new google.maps.InfoWindow({ content: contenu_html }); openInfo = infowindow_157; infowindow_157.open(map,marker_157); } }); }); bounds.extend(markerLatLng); showKmls(contourCom['com_157']); var markerLatLng = new google.maps.LatLng(parseFloat(43.1082992553711),parseFloat(3.09428000450134)); 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_158 = new google.maps.Marker({ position: markerLatLng, map: map, icon: icone, title: '' }); markersArray.push(marker_158); google.maps.event.addListener(marker_158, 'click', function() { $.ajax({ type: "GET", url: 'spip.php?page=ajax-infobulle', data: 'id_article=158', success:function(responseText){ contenu_html = responseText; }, complete:function(){ if(openInfo) openInfo.close(); var infowindow_158 = new google.maps.InfoWindow({ content: contenu_html }); openInfo = infowindow_158; infowindow_158.open(map,marker_158); } }); }); bounds.extend(markerLatLng); showKmls(contourCom['com_158']); var markerLatLng = new google.maps.LatLng(parseFloat(43.1144981384277),parseFloat(3.09352993965149)); 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_159 = new google.maps.Marker({ position: markerLatLng, map: map, icon: icone, title: '' }); markersArray.push(marker_159); google.maps.event.addListener(marker_159, 'click', function() { $.ajax({ type: "GET", url: 'spip.php?page=ajax-infobulle', data: 'id_article=159', success:function(responseText){ contenu_html = responseText; }, complete:function(){ if(openInfo) openInfo.close(); var infowindow_159 = new google.maps.InfoWindow({ content: contenu_html }); openInfo = infowindow_159; infowindow_159.open(map,marker_159); } }); }); bounds.extend(markerLatLng); showKmls(contourCom['com_159']); showOverlays(); map.fitBounds(bounds);