:D
Send 1 and add markers to the map :)
Send 2 and add markers to the map :)

you will need
1. var map = created map
2/ var markersOnMap = [] //array for markers on the map ;)


request(request_handler)

request_handler = function(e) {
   var data = e.markers; //see the docs about places response


  for(var i=0; i < data.length; i++)  {
     var newMarker = google.map....
     newMarker.setMap(map);

     markersOnMap.push(newMarker);
  }

}

and that's it when you want to remove a marker from the map you first
find it in the markersOnMap array, set the map top null and remove it
from the array.
I'm lazy so :) check out the syntax for the request.



On Wed, Jul 27, 2011 at 4:11 PM, thindery <[email protected]> wrote:
> How do you send off two requests and get both results to show up on the same
> map?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-maps-js-api-v3/-/4RznwjTeaJoJ.
> 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-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 [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-js-api-v3?hl=en.

Reply via email to