https://maps.googleapis.com/maps/api/place/search/json?location=-33.8670522,151.1957362&radius=500&types=food&name=harbour&sensor=false&key=AIzaSyAiFpFd85eMtfbvmVNEYuNds5TEF9FjIPI
from the doc.:
"name (optional) — A term to be matched against the names of Places. Resu..."
> --
> 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/-/_7GlcCv0NZsJ.
> To post to this group, send email to google-map...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-maps-js-a...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>
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 <thin...@gmail.com> 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.