I’m wondering if it is possible to insert a map (with some lines) that was created on google.com into a javascript that uses the v3 api. I tried to read it up/google it, but I couldn’t find anything so I’m guessing it isn’t possible?
If yes, – how?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you are talking about a map created in “My Places” on maps.google.com, those can be accessed as KML which can be displayed on a Google Maps API v3 map using KmlLayer
Map created in “My Places”
Same KML displayed on a Google Maps API v3 map with KmlLayer
To answer your additional question in the comments, the simplest way to do it is to take the example from the documentation and replace the URL with yours. So yes, you can just change the filename URL in the first line of the initialize function to the URL of your KML: