Quote:
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:
Code:
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.
Otherwise, I would have to type in the various Lat and Long positions myself in the JavaScript.
My XML output is of the form
Code:
<markers>
<marker> lat="",long="",intensity=""/>
</markers>
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.