kml

Android Google Maps/Earth opening Local KML/KMZ file and play the tour functionality

人盡茶涼 提交于 2021-02-19 07:40:48
问题 Is there a way to open a local KML/KMZ file in Google Maps/Earth app on Android? Tried the below approach but didn't work. Intent mapIntent = new Intent(Intent.ACTION_VIEW); Uri uri1 = Uri .parse("geo:0,0?q=file:///mnt/sdcard/doc.kml"); mapIntent.setData(uri1); startActivity(Intent.createChooser(mapIntent, "Sample")); If not and if we can specify only links that are hosted on the web then can we specify a link to the Google Drive file to show directly on Google Maps/Earth? Intent mapIntent =

kml google extensions not in schema

风格不统一 提交于 2021-02-19 03:05:49
问题 The jurisdiction I live in published data using a Google globe. The kml file they point to contains <?xml version='1.0' encoding='UTF-8'?> <kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2"> <gx:GoogleMapsEngineLink> <href>http://globe.information.qld.gov.au/qldglobe</href> </gx:GoogleMapsEngineLink> </kml> I can't find any reference to the gx:GoogleMapsEngineLink in any public documentation and I am having trouble using that with other standard kml, for

KMZ do not show of my icons

微笑、不失礼 提交于 2021-02-08 09:25:16
问题 Earlier, I tried to put the file on the host kml. My question here Not showing the path in KML. Now I created new file kmz on the recommendations of Google. File here: http://tourist-sweden.se/transport/map/sthlm/t-11-1.kmz . Calling map: http://tourist-sweden.se/transport/map/sthlm/t-11-bana.html Now maps show only the path but do not show of my icons. What a mistake again in my maps? Are there any robust and simple alternative to kml? 回答1: Your KMZ file is not correct. If you zip up the t

KMZ File with Icon

喜夏-厌秋 提交于 2021-02-08 05:47:18
问题 I'm trying to put an icon in a KMZ file so the user can view a thumbnail when they click on the pinpoint. I have the following code - It's working, but isn't showing the icon/thumbnail. I've looked at the Google Developers and can't see a difference. Just need a second pair of eyes to view it. <?xml version="1.0" encoding="UTF-8"?> <kml xmlns="http://www.opengis.net/kml/2.2"> <Placemark> <name>Evidence File</name> <description>SAMSUNG - GT-I9000 2012:10:25 17:36:57 2797 KB Height: 2448 Pixels

PHP get coordinates from KML file

吃可爱长大的小学妹 提交于 2021-02-08 03:35:29
问题 I'm using a KML file to extract coordinates and insert them in a multi-dimensional array. At first I'm trying to output only the coordinates on the page - and it doesn't seem to be working Here is the code I've tried so far: <?php $url = "myKML.kml"; $contents = file_get_contents($url); $xml = new SimpleXMLElement($contents); $value = (string)$xml->Document->Placemark->Point->coordinates; $coords = array(); foreach($value as $coord) { $args = explode(",", $value); $coords[] = array($args[0],

How can I reference local custom icons in a kml?

孤街浪徒 提交于 2021-01-29 11:49:51
问题 I have quite literally never tried to edit a kml file before, so I'm not totally sure of what I'm trying to ask, but I'll do my best. I'm trying to use custom icons for my placemarkers. I tried to upload the images to a hosting site and link to them, and I also tried putting them into a subfolder and referencing the local address. Here are those attempts. <Style id="1"> <IconStyle> <Icon> <href>https://cdn1.imggmi.com/uploads/2019/3/8/63626b5bc964d76ca0d5bdb30fb44afd-full.png</href> </Icon> <

Basic KML with Google Map API not working

孤街醉人 提交于 2021-01-28 07:05:30
问题 I tried my first Google Map API with KML and it bombed on me. Just seem to be a very basic problem but just can't get it to work. Here is the script tag: <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"> </script> Here is the Javascript: $(document).ready(function () { map_center = new google.maps.LatLng(-34.397, 150.644); var mapOptions = { zoom: 8, center: map_center }; var kml_map = new google.maps.Map(document.getElementById('map_div'),