kml

Issue with placemark 'auto' shading in Google Earth

我是研究僧i 提交于 2019-12-25 06:48:12
问题 I have a KML file with a list of placemarks that have custom icons, colors, and sizes. When I display the file in the Google Earth browser plugin, I see that icons that are situated below other icons are shaded. This makes the color of the icon different from what I have in the <color> tag. How do I disable the shading so that I always see the true color of the icon? 回答1: This is possible in the current version of the Api. You can control the icons color, animation, etc - but the clustering

Highlight country around the border from your search area only

隐身守侯 提交于 2019-12-25 06:22:42
问题 I have to make a KML file from the Dutch country. What I want to do is: I want to Highlight only the countries around the border from my search area. Example: As a user searches on 'Amsterdam'. There are like 9 (Zaandam, Amstelveen, Hooftdorp, Diemen, Duivendrecht, ......) other states that are connected with Amsterdam. I want only these 9 states to have a highlight. So all I want to do is Highlight the states that are connected on the border from the user search area. Can anybody help me

Point in KML Polygon - C / C++ code

久未见 提交于 2019-12-25 04:53:32
问题 I am looking for C or C++ code to identify whether the point (a co-ordinate) lies inside a KML polygon or not. I have searched but all I got is javascript (google maps apis) which can achieve the same. I cannot even port it directly because I have a slight modified requirement: Identify whether given co-ordinate lies within polygon of KML (the code should exclude holes in the polygon too!). Informing the caller the distance to the nearest polygon edge if the point is outside the range. As far

Google API--KMZ File Not Appearing in Web Map

微笑、不失礼 提交于 2019-12-25 03:16:45
问题 I am attempting to get a KMZ file to load ontop of a Google Map API and the KMZ file is not appearing. Below is my code and everything executes properly when I load the HTML--the KMZ file is just missing. I tried to minimize the size of the file by converting only one feature layer vs the entire map document to KMZ but I had the same problem. Ideas? <!DOCTYPE html> <html> <head> <title>Map Title, USA</title> <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAx70- gnDWt1nCCf

Open file link with application on user click [duplicate]

守給你的承諾、 提交于 2019-12-25 03:08:49
问题 This question already has an answer here : Open Google Earth and load specific KML file when user clicks link on web page (1 answer) Closed 6 years ago . In my website i have a link to kml file . When a user clicks on this link ,I want to open this kml file with google earth application. In android we can do it by using intent and providing content type. How to do the same is desktop ? NO But it will not solve the problem. Is there way to ask for user consent if yes open using script? Can i

How to check if geocode is close to or on path defined in a KML LineString with PHP or MySQL

帅比萌擦擦* 提交于 2019-12-25 02:54:15
问题 I have a KML file defining several paths/routes (representing actual roads) enclosed in the <LineString><coordinates></coordinates></LineString> tags. Parsing the file to other formats (arrays/MySQL) is already in place, so that's not a problem. Given a point (longitude/latitude) I would like to be able to check if the point is on or close to (within a few meters) one of the routes in the KML file. I've been looking for a solution in PHP, but I haven't been able to find one - and I'm not

appendChild kmz works only in second time when I run a tour (tour is into the same kmz)

家住魔仙堡 提交于 2019-12-25 02:15:07
问题 I have a KMZ file for GE plugin. This file have lots of PNG into, and several kml (poligons, lines, placemarks, etc). The function to run this tour is: function loadKmztour(href){ google.earth.fetchKml(ge, kmlURL, function(kmlObject) { if (kmlObject){ ge.getFeatures().appendChild(kmlObject); walkKmlDom(kmlObject, function(context) { if (this.getType() == 'KmlTour') { ge.getTourPlayer().setTour(this); ge.getTourPlayer().play(); } }); }); } It runs well, but only the second time when I run the

Incompatibility with geocodezip map in internet explorer (any version)

青春壹個敷衍的年華 提交于 2019-12-25 01:36:00
问题 I have this map, as an answer of this other question. It uses geocodezip and works well, but it is not working in Internet Explorer. Can you suggest me any solution? This is the link of the map: http://www.geocodezip.com/geoxml3_test/v3_geoxml3_kmltest_linktoB.html?filename=http://www.geocodezip.com/xmlProxy060215.asp?https%3A%2F%2Fmaps.google.com%2Fmaps%2Fms%3Fhl%3Den%26ie%3DUTF8%26oe%3DUTF8%26authuser%3D0%26msa%3D0%26output%3Dkml%26msid%3D216330649072490208011.0004daf6e6bfde8dd857d This is

KML file format or minimum requirements

北城余情 提交于 2019-12-24 23:19:12
问题 Having minimal experience with XML, and none whatsoever with KML, I try to find something along the lines of what a program expects when reading a KML file. I'm writing some software to generate a KML file, but when I try to open said file in Google Earth, I get this error: Open of file "C:/blahblah/myFile.kml" failed: Parse error at line 21, column 0: junk after document element I have reduced myFile down to the following, with the same error. <? xml version="1.0" encoding="utf-8"?>

Javascript XMLSerializer case sensitive

别来无恙 提交于 2019-12-24 23:04:52
问题 I'm generating a KML document in Javascript and i'm trying to use XMLSerializer to generate the XML file but it's generating all lower case tags even though i create the tags in capital in the DOM. Is it the DOM that mangles the capitalization or the XMLSerializer? Is there any way to get around it or am I missing something? I've tried this in both Chrome and Firefox. The KML document is to be imported into Google Earth and it seems it doesn't accept lower case tags. 回答1: Based on testing in