On Jan 8, 7:48 pm, japonyol <[email protected]> wrote:
> &gt; Other changes may be required
>
> Yes, I tried "Other change", instead of
>
> var point = poly.GetPointAtDistance(i*poly.Distance()/maxNodes);
>
> Replace like this:
>
> var latlng = new GLatLng(parseFloat(data[i].lat), parseFloat(data
> [i].lng));
> var point = new GLatLng(latlng);
>
> Error Console displayed: "No input file specified."
>
> Rudimentary error?

This works (based off of yours):
http://www.geocodezip.com/japonyol_net_profile-testF.html

  -- Larry


>
> On 1月9日, 午前10:51, "[email protected]" <[email protected]> wrote:
>
> > On Jan 8, 5:18 pm, japonyol <[email protected]> wrote:
>
> > > I'm learning from Mike Williams' 
> > > example:http://econym.org.uk/gmap/example_profile.htm
>
> > > In my country, it's not yet covered GDirections service,
> > > so I want to draw profile (write each points), but I can not.
>
> > >http://japonyol.net/profile-test.html
>
> > > Any help please.
>
> > Use the polyline you created instead of dirn.getPolyline...
> > Replace this:
> > //      var dirn = new GDirections(map);
> > //      GEvent.addListener(dirn, "load", function() {
> > //       nodes = 0;
> > //       var poly = dirn.getPolyline();
> > //       for (var i = 0; i<maxNodes; i++) {
> > //          getAltitude(poly, i)
> > //        }
> > //      });
> > //      dirn.load( "from: Toronto to: Markham, Canada",
> > {getPolyline:true});
>
> > with:
> >        for (var i = 0; i<maxNodes; i++) {
> >           getAltitude(poly, i)
> >         }
>
> > Other changes may be required
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to