Open local kml file google maps


















Don Meltz Don Meltz 4, 1 1 gold badge 27 27 silver badges 31 31 bronze badges. This approach doesn't appear to work any more. Upon clicking the above link, I just get google maps with your dropbox link in the search box. Working with KML on maps. I have found that you can simply click on the share link from Google Drive and the KMZ will automatically load in Google Maps without any other need for extension. Tested in Chrome and Explorer.

Show 3 more comments. My recommended technique is to: Create a folder and mark it for public access. Use the Upload link to upload your KML files into this folder without conversion and shared with the world Go to the Download link, copy it, and paste it into the Google Maps search box I wonder how long before Google allows interactive collaborative editing of KML documents via Google Docs?

JasonBirch JasonBirch 1, 1 1 gold badge 18 18 silver badges 29 29 bronze badges. One thing to take care about: if you change the file and this may include "save as" with the same filename , Dropbox will change the file ID the hash part in the link. Regular opening and saving in a text editor, for example doesn't appear to pose problems.

Community Bot 1. Interesting, this is the answer that most directly addresses the question. Sergio Sergio 7 7 silver badges 14 14 bronze badges. As you mention, support has moved to My Maps. Jon Bringhurst Jon Bringhurst 5 5 silver badges 11 11 bronze badges. Note that the "Sandboxing" isn't really the reason that you can't do what you want with Google: If an HTML page is hosted on your local server, the JS should be able to read a file from the local server.

You only can't because Google parses all files on the server side -- so their server needs to talk to your server, which it can't. Ah, good point. I was thinking along the lines of a file on the local filesystem rather than a local httpd. To access these nested containers, similar to what you are able to do in your layer, you can call getContainers.

To access containers which are not nested in a KmlLayer or KmlContainer:. To access containers which are nested in a KmlLayer or KmlContainer :.

To access any placemark or ground overlay that has been added to the layer, you can call getPlacemarks or getGroundOverlays on a layer or container.

For example, to access a KmlPlacemark objects from a layer:. To access any property in a container or placemark, call getProperty and give it a property key. You can also call hasProperty to check if it exists. This sample shows how to retrieve the property value "name" from a container, if it exists. You can use KmlLayer. OnFeatureClickListener to listen for click events on the geometry features on the map.

The following example logs the ID of a feature when the user clicks the feature:. For an example of importing a KML file and creating a layer with it, take a look at the KmlDemoActivity in the demo app that ships with the utility library. The setup guide shows you how to run the demo app. Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.

For details, see the Google Developers Site Policies. Solid Explorer , Astro , Jpsy Jpsy This doesn't seem to work any more. According to support. The support options are at the bottom of that page.

In any case you need to use a file provider - content URI - nowadays. But that didn't solve it for me. MKer MKer 3, 1 1 gold badge 11 11 silver badges 18 18 bronze badges. The Overflow Blog. Podcast Helping communities build their own LTE networks. Podcast Making Agile work for data science.

Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually.



0コメント

  • 1000 / 1000