Sorry, I had just finished replying to another post that was trying to do something in v3 of the API from v2.
The same more or less works. Instead of a MVC array you can push it into a normal array, all a MVC array is more or less is an array of LatLng points. Capture the points from the user click event and push them to an array and send them out once you have them all. On Tue, Sep 7, 2010 at 3:07 PM, [email protected] <[email protected]>wrote: > On Sep 7, 12:50 pm, Nathan Raley <[email protected]> wrote: > > What are you needing? Do you need to know the coordinates where the user > > clicks on the map or something? You just need to add a map click event > and > > capture the latlng returned from the click event. Store it in a MVC > array > > and you are good to go. > > This is the API v2 group. The API v2 does not include MVC arrays. > > > For whatever event you want to signal that the user > > is done, in the case of the example it appeared to be a marker click > event, > > you can just send out the information in your array to wherever you are > > wanting to send it. > > > > Is that what you were looking for? > > > > > > > > On Tue, Sep 7, 2010 at 2:45 PM, ashore <[email protected]> wrote: > > > Folks, the example at > > >http://gmaps-samples.googlecode.com/svn/trunk/poly/mymapstoolbar.html > > > is simply great. > > > > > But I want to capture the result of user clicks for retention, and > > > it's not at all clear to me on how to accomplish the necessary > > > encoding, etc. > > > > > I can get the JS => server OK, but it's the step of capturing user > > > actions into some format - JSON presumably - that's throwing me. > > Does this thread help? > > http://groups.google.com/group/Google-Maps-API/browse_thread/thread/7128af594e36e47b# > > -- Larry > > > > > > Thanks for any pointers on this. AS > > > > > -- > > > 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]<google-maps-api%[email protected]> > <google-maps-api%2bunsubscr...@googlegroups.com> > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/google-maps-api?hl=en.- Hide quoted text > - > > > > - Show quoted text - > > -- > 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]<google-maps-api%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-maps-api?hl=en. > > -- 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.
