On Dec 23, 4:36 pm, Alex Genadinik <[email protected]> wrote: > > What do you believe this statement does? > > > document.getElementById("map_canvas").innerHTML=xmlhttp.responseText; > > > -- Larry > > I thought it would populate the map_canvas div with the new markers.
That statement replaces the content of the div with id="map_canvas" with the text returned by your xmlhttp request, destroying anything that it currently contains (the map). > But I am new to AJAX and JSON and the right ways to architect > solutions with these technologies. What would you suggest the right > way to populate the map? How many markers do you have? It looks to me from the map that you really just need a "category" map, like this: http://www.geocodezip.com/v3_MW_example_map3.html (described in Mike Williams' v2 tutorial page: http://econym.org.uk/gmap/categories.htm) But if you have lots of markers, then AJAX techniques (with either xml or JSON data to poputlate the markers) will be necessay. -- Larry -- 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.
