Originally Posted by xelawho
I don't know if I'm getting the difference - you import your data via ajax, create the objects, push them onto an array and initialize it as an MVC array. That last bit's easy:
pointArray = new google.maps.MVCArray(taxiData);
what specifically are you getting confused about?
I am not confused about the script of the first code. The first code is just an example and as such it is not what I want.
I want an XML data generated by my PHP code to get incorporated into the array of 'taxidata' so that it offers me a much more dynamic choice.
My XML output is of the form
I want this 'lat', 'long','intensity' to be incorported into the first code (that is, instead of the example data of the taxidata array, I want my XML data to be part of it) so that it's more dynamic.
In that taxidata example, there is only the Lat and Long options. But Google documentation says that it's possible to include an additional variable of intensity in it too. That intensity value is there in my XML data.