kml

Create KML file with linestring and placemarks

爷,独闯天下 提交于 2019-12-11 10:29:09
问题 I am building a KML file using an app that I have built. Right now I have it nicely drawing a linestring on the map. But, now I want to add a few placemarks inside the same KML file. When trying to do this it will show either the line string or the place mark, but not both. How can I do this inside a KML file? What I currently use: <?xml version="1.0" encoding="UTF-8"?> <kml xsi:schemaLocation="http://earth.google.com/kml/2.1 http://earth.google.com/kml2.1.xsd" xmlns="http://earth.google.com

KML Entity Replacement in BalloonStyle Fails in GoogleMaps, But Not GoogleEarth

爱⌒轻易说出口 提交于 2019-12-11 10:02:49
问题 Spent way too many hours debugging KML from within GEarth vs. Google Maps. Can someone give me a hint on why the following 'Entity Replacement' below works fine in GE but fails in GMaps. I ran XMLValidate and the file is fine, but the tags in [CDATA] don't get replaced by GoogleMaps API, only in GEarth. I read the Best Practices KML docs on BalloonStyle entity replacement, and the mind-numbing description in the OGC KML 2.2 standard and tuned and trimmed the file, but I'm still stumped. I can

How to update a KML to include a new Element with a value

孤者浪人 提交于 2019-12-11 09:57:39
问题 I have a KML that does not have the Element "name" under Element Placemark. As such, when opening the KML using Google Earth, there is no name appearing next to each polygon under the tree. In the original kml below, there are 2 Placemark. Each has an Element simpleData name="ID". The 2 values associated with them are FM2 and FM3 respectively. <?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" xmlns:kml="http://www

How do I add circles with varying radii around KML data points?

血红的双手。 提交于 2019-12-11 09:56:49
问题 I have a list of addresses that need to be placed on a map and displayed with a circle around each of varying radii. I have a KML file listing all of my points and I want to add a 'radius' custom field within the KML and be able to draw a circle around each point based on the custom field. Am I on the right track or is there an easier way to do this? 回答1: Depends on how many addresses you have. If your KML file is a couple of megs large, then you might be on the right track. However, KmlLayer

Google Maps API V3 - KML Layer vs. JS created Polygons

一笑奈何 提交于 2019-12-11 09:41:53
问题 I'm back with more work on the Google Map that I've been working on. Here is the situation: I have a map of Virginia. It will have markers in it, but I need the markers to be added/removed/editable by several people. As a result, I created a Google map in "My Places" and I'm importing the resulting KML file into a map I'm loading into the API. I'm also trying to "white out" neighboring states by drawing a polygon over them and adding a white layer over them with 75% opacity, in order to make

Not showing the path in KML

限于喜欢 提交于 2019-12-11 08:30:37
问题 I'm trying to create a map of Stockholm subway on Google maps. I have created a KML file to the blue line http://tourist-sweden.se/transport/map/sthlm/t-11-bana.kml I call this file with this JavaScript code: <!DOCTYPE html> <html> <head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no"> <meta charset="utf-8"> <title>Map of Stockholm's subway: line Nr.T-11 "Akalla - Kungsträdgården"</title> <link href="https://developers.google.com/maps/documentation/javascript/examples

How to add KMLlayer to Android GoogleMap

送分小仙女□ 提交于 2019-12-11 08:17:51
问题 based on this link "https://developers.google.com/maps/documentation/android-api/utility/kml" I have followed it until to the point where I have to type this code: KmlLayer layer = new KmlLayer(getMap(), R.raw.kmlFile, getApplicationContext()); I'm having a red line in 'getMap()' and 'R.raw.kmlFile' and I can't understand what it's trying to say in the part where he says ***To import and render a KML dataset from a local resource, you need: A GoogleMap object where the layer is to be rendered

MVC4 asp.net accessing kml file in view

白昼怎懂夜的黑 提交于 2019-12-11 08:16:38
问题 I have a problem in my MVC4 project in visual studio 2012. I build a backoffice in symfony2 and there i can display google maps with polygons loaded from a kml file. Now i am trying to do the same thing in asp.net (C#)... But my code doesn't seem able to access the kml-file. I am not using the Model View Controller system to acces my file, and maybe that is the problem... i made a directory in my project named 'Kmls' and i pasted my kml in there (1.kml, 2.kml, ...) this is my code of my view:

Adding a tag in KML file Using R

随声附和 提交于 2019-12-11 07:56:35
问题 I've kml file exported from Google Earth Pro, consist of 37 Folder, each Folder contain number of "minor" Folder, the number of total "minor" Folders is 168, each "minor" has 3 placemarks. I've HTML code, i made it with R, and want to import this kml file into R and put this HTML code into the first "Placemark" for each "minor" Folder, this HTML code isn't constant, it has variables like the values in the table in this code, and this variables will attached from dataframe i made for this

Custom icons in KML occasionally break in Google Maps

落花浮王杯 提交于 2019-12-11 07:37:55
问题 So this might be a bit tricky to demonstrate, since the problem only appears occasionally and unpredictably--hopefully the problem shows up when you view this question (or, alternatively, has stopped appearing altogether!). We have a Google Maps implementation on our site that displays paginated search results on a map. The current page's results appear as regular Google Maps markers (with custom icons--these work fine), but the other search results appear as smaller markers in a KML layer.