Hiren Dabhi
Hiren Dabhi

Reputation: 3713

How to dynamically add tag (latitude, longitude) in XML file when I click on Google map


I want to store latitude-longitude in XML file, when user clicked on google map. and also create XML file dynamically (if file not exist, create and add tags, OR if exist then append the tag).

<root>
     <point> 
            <latitude>  27.4324 </latitude>
            <longitude> 73.4422 </longitude>
     </point>
        .
        .
        .
</root>

thanks...

Upvotes: 1

Views: 831

Answers (1)

Timothy S. Van Haren
Timothy S. Van Haren

Reputation: 8966

In a nutshell, you'll need to perform an AJAX request to a server-side script that performs the creation/update of the XML file on the map.click() event, passing the latitude and longitude to the script. Without knowing what server-side language you're using, what version of the Google Maps API you're using, and what you've already tried, it's difficult to be more specific.

Upvotes: 1

Related Questions