I want to dynamically aggregate data based on user input (basically firing a sql on my database ) and create a dynamic KML file out of that and display it on google map using their java script API .
How can i achieve this .
Note :All of my data is either on private cloud or in house ,initially i thought of exporting some of the data of my use (for aggregation purpose) to fusion but got lost on how to achieve my end target .