> i am new to this.If you could provide me with sample code will be
> great.....

Sample for what?  You haven't explained what you want to do, or which
parts you are havin trouble with.  "Save the kml file" is not clear
enough - save it where?  On a floppy disc, on your server, on somebody
elses' spreadsheet?

Being new isn't a problem, but you have to be prepared to learn to do
what you want.  If you want someone else to do it for you, you'll
probably have to hire someone.

I think you have several tasks to perform, just go at it one step at a
time : -
Get a map on a webpage.
Add tools to allow user-controlled placing of markers and drawing of
polylines.
Decide how complex you want your KML to be - can the user change line
colours or marker images etc.
Find out how KML is defined.
Write some script that can take your javascript-available map data ,
e.g. lat/lngs, marker images, and convert it to a KML-compliant
representation in text, building your 'file'.
Pass that text to wherever it is you want it saved.
Write some more stuff at the 'wherever' that handles the text, and
saves it in a real file.

You can get started with the usual map tutorials and by searching this
group for things like 'drawing polylines'. You can always ask for
help, but you have to be more specific, and if you can provide an
example that shows you've tried yourself, people will be much more
inclined to help you.

cheers, Ross K

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to