紅線

2012-12-03 19 views
0

Here a picture of the problem紅線

這是我與重疊

function cargar_map_restaurant(latitude, longitude, icono, name_restaurant, detalle) { 


directionsDisplay = new google.maps.DirectionsRenderer(); 
var scroll_false = detalle ? false : true; 
var punto = new google.maps.LatLng(latitude, longitude); 
var myOptions = { 
    zoom : 15, 
    center : punto, 
    mapTypeId : google.maps.MapTypeId.ROADMAP, 
    scrollwheel : scroll_false 
} 
map = new google.maps.Map(document.getElementById("map"), myOptions); 


if (detalle === true) { 
    marca = new google.maps.Marker({ 
     position : punto, 
     icon : icono, 
     map : map, 
     title : name_restaurant, 
     animation: google.maps.Animation.DROP, 

    }); 

    google.maps.event.addListener(marca, 'click', function() { 
      infobox.open(map, this); 
      if (this.getAnimation() != null) { 
       this.setAnimation(null); 
      } else { 
       this.setAnimation(google.maps.Animation.BOUNCE); 
      } 
    }); 
} 
directionsDisplay.setMap(map); 
directionsDisplay.setPanel(document.getElementById("ruta")); 

}

當您在地圖上創建的覆蓋,也創造了一個紅色的加載地圖代碼在品牌周圍形成一條弧線。

我不知道我會做錯,因爲這發生在我身上所有我做覆蓋。

Here's an example of the problem of link

回答