On Feb 6, 1:11 pm, Brendan <[email protected]> wrote:
> I am unsure how to use the getLatLng function with the gpolyline
> function. It appears gpolyline only accepts the gLatLng function. Does
> anyone know how to use the getLatLng function in the gpolyline
> function?
>
> There is alot of php intertwined with my javascript code so I'm not
> posting the whole script, but the main method I am attempting is to
> use the following script as the function paramater in
> geocoder.getLatLng:
>
> var marker=marker1;
> var lat=marker.lat;
> var lng=marker.lng;
>
> var latlng = newGLatLng(parseFloat(lat),parseFloat(lng));

There is no newGLatLng object.  If that is a typo (as I suspect) and
isn't the problem, post a link, not code.

http://groups.google.com/group/google-maps-api/web/suggested-posting-guidelines

http://groups.google.com/group/Google-Maps-API/web/why-including-a-link-is-critical

  -- Larry

> points.push(latlng);
>
> var polyline = new GPolyline(points, "#0066cc", 5);
> map.addOverlay(polyline);
>
> For some reason, it is not recognizing the points and won't create a
> polyline. Am I even going about this correctly? The problem has to be
> in this script because I also have another script that use points.push
> with gLatLng and it works fine.

-- 
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