kml

Google Maps JavaScript API won't display markers from KML exported from My Maps

徘徊边缘 提交于 2019-11-26 10:00:27
问题 I have a map on Google My Maps that I want to display using the Google Maps JavaScript API; this is so that I can easily combine multiple maps into one and create paths/markers without having to do it programmatically. Here is the test map that I\'m using. It\'s a cruddy map but I expect both the path and the marker to show up in my JavaScript. https://www.google.com/maps/d/edit?mid=z_Tk3EyXNpN8.k743LUvJRr1U&usp=sharing And here\'s the JavaScript: http://jsfiddle.net/gB2YD/66/ What happens is

Google Maps output=kml broken?

一曲冷凌霜 提交于 2019-11-26 02:58:23
问题 All I was using the google maps KML output in my iPhone app. If I type the following on my browser, it used to give an option to save the kml file: http://maps.google.com/maps?q=restaurant&mrt=yp&num=10&sll=37.786945,-122.406013&radius=5&output=kml But all of a sudden today, it is returning an html file. What happened? any ideas? I use it in my iPhone app and it is throwing error as it is not a valid xml returned. Obviously.... Thanks, mbh 回答1: This way of extracting the Google Directions

Why retrieving Google Directions for Android using KML data is not working anymore? [duplicate]

北慕城南 提交于 2019-11-25 23:31:04
问题 Possible Duplicate: Google Maps output=kml broken? I started to get Error when I\'m trying to retrieve Google Directions using KML data since few days. The Error seems that the URL I\'m requesting doesn\'t retreieve KML data anymore, it returns a whole page. I followed this in order to achieve that. What is the solution for this? Is there any alternatives? 回答1: Update: Since Android Google Maps v2 is now used, the code needs to be adjusted to work on v2 maps which can be found here. Original

How to draw a path on a map using kml file?

给你一囗甜甜゛ 提交于 2019-11-25 21:58:59
问题 Can I parse kml file in order to display paths or points in Android? Please could you help me with that? This is kml sample code which I would like to display in android google map: <?xml version=\"1.0\" encoding=\"UTF-8\"?> <kml xmlns=\"http://www.opengis.net/kml/2.2\"> <Document> <name>Paths</name> <description>Examples of paths. Note that the tessellate tag is by default set to 0. If you want to create tessellated lines, they must be authored (or edited) directly in KML.</description>