No, what I want to do is to pass a JSON text response into eval() and have the resulting javascript objects treated as LatLng objects - just like when a directions request json response comes back. It is a 'simple' text response, but when it arrives in our callback functions, it contains LatLng objects.
I don't think that there is an intermediate process of transforming the LatLng nodes into LatLng objects ... is there ? Simon On Feb 19, 8:57 pm, Paulo Fernandes <paulofernande...@gmail.com> wrote: > If I understand, you need to parse JSON response to an array or MVCArray > > Paulo > Fernandeshttp://www.google.com/profiles/paulofernandesjrhttp://twitter.com/paulofernandesj > +55 11 9797-5974 > > On Sat, Feb 19, 2011 at 5:32 PM, sgiddings <mr.s.giddi...@gmail.com> wrote: > > I am needing to be able to generate a polygon on my server and then > > pass it back to the client. > > Ok, I can create the series of latitude / longitude pairs which > > describe the polygon and then pass it back to the client in a JSON > > response. > > > What I would really like to do, is to have this JSON response > > recognised as containing an array of LatLng objects that I can pass > > directly to the Polygon constructor in the PolygonOptions object. > > > Has anyone done this kind of thing ? > > What would be the "right" way of doing this ? > > > Simon > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Maps JavaScript API v3" group. > > To post to this group, send email to > > google-maps-js-api-v3@googlegroups.com. > > To unsubscribe from this group, send email to > > google-maps-js-api-v3+unsubscr...@googlegroups.com. > > For more options, visit this group at > >http://groups.google.com/group/google-maps-js-api-v3?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.