[Google Maps API v3] Re: Route lenght for Each Country

2011-12-02 Thread Janusz Kobylarz
Easier method is (thx to gmap3 support [code]var steps = results.routes[0].legs[0].steps var a = 0; var tekst = []; $.each(steps, function(i, step) { a = a + step.distance.value; if (/Entering : Germany/.test(step.instructions)) { alert ("from "+x+" to Germany :"+a); ... [code] with that exampl

[Google Maps API v3] Re: step by step coordinates

2011-11-29 Thread Janusz Kobylarz
OK i found it alert(result.routes[0].legs[0].steps[0].distance.text); display the step[0] length from this example you can now do what you want :) -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To view this discussion on the w

[Google Maps API v3] Re: step by step coordinates

2011-11-29 Thread Janusz Kobylarz
>From direction result result.routes[0].overview_path i.e alert(result.routes[0].overview_path); show the lat , lng but more than steps http://code.google.com/intl/pl-PL/apis/maps/documentation/javascript/services.html#Routes try to call that same with steps -- You received this message beca

[Google Maps API v3] Re: Route lenght for Each Country

2011-11-29 Thread Janusz Kobylarz
So i need that http://maps.forum.nu/v3/gm_directions.html but for country not county i have no idea how its done but maybe someone of you can explain me that -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To view this discussio

[Google Maps API v3] Route lenght for Each Country

2011-11-28 Thread Janusz Kobylarz
Hi i need a lenght of route in each country In Direction Panel i see a info ("entering : Germany") is there a way to receive the lenght to this point and next to next ("Entering") THX for help -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript A

[Google Maps API v3] Marker Data from MySQL

2011-11-13 Thread Janusz Kobylarz
Hi I can download lat & lng from my database and present it on my Google Map But i must add a infowindow with Adress and/or my notes I use this example http://gmap3.net/api/add-markers.html and change *markers:[ {lat:48.8620722, lng:2.352047, data:'Paris !'}, {lat:46.59433,lng:0.342236, data:'Poi