2011 m. gegužės 30 d., pirmadienis

Google Maps: kaip iš GDirection išmesti markerio ikonas A, B, C?

Problema: Can anyone help me creating a polyline for walking directions,
avoiding one-way streets?

Is it possible to disable the two green markers (A) and (B), from
directions? Keeping just the polyline?

Sprendimas
:

GEvent.addListener(directions, "addoverlay", function()
{
var nMarkers = directions.getNumGeocodes()
for(var i=0; i< nMarkers;i++)
{
var marker = directions.getMarker(i);
if (marker != null)
{ marker.hide();}
}
});

Pagal http://www.bottonisworld.com/2009/04/29/568/programmazione/js/come-modificare-i-marker-di-gdirections-delle-google-maps/

Komentarų nėra:

Rašyti komentarą