kml

Interactive legend in Google Maps API V3 with two or more KML layers

本秂侑毒 提交于 2019-12-11 07:26:42
问题 I'm fairly new to JavaScript and Google Maps API(basically, the whole world of web GIS) and I'm struggling with creating interactive legend for several KML layers (in this example, only two) or something like this http://www.strahlen.org/map/central.htm but for KML layers. Here is my code: <script> var tocka = new google.maps.LatLng(46.150346, 15.863571); function initialize() { var neven = { center: tocka, zoom: 15, mapTypeId: google.maps.MapTypeId.HYBRID }; var map = new google.maps.Map

Google Earth - Balloon at launch

百般思念 提交于 2019-12-11 07:16:20
问题 When I open a KML file I would like to have an image/details display in a pop-up balloon automatically. Typically the user has to physically click the folder/image for the pop-up to appear. Is there any code that would allow me to have the balloon appear once the KML is launched? I know how to add an screen overlay and have that appear on the middle of the screen at launch, but you cannot remove it off the screen unless you check it off in the sidebar. Thanks! 回答1: Google provides a few

Zoom levels in kml files on google maps

孤街浪徒 提交于 2019-12-11 06:45:38
问题 When I add GMarkers to a google map I can specifiy the min and max zoom levels at which the marker should be displayed using MarkerManager. Is there a way to specifiy this for Placemarks in kml files when they're displayed in Google Maps? It looks like the region tag in kml does this, but only in Google Earth, not in Google Maps. 回答1: Google Maps only supports a limited subset of KML: Google Maps KML support 来源: https://stackoverflow.com/questions/1115010/zoom-levels-in-kml-files-on-google

Query in a geometry column (created by kml file)?

你。 提交于 2019-12-11 05:47:54
问题 If you query with contains ignore case then the query will return the data, but does so slowly. How I can query in a geometry column in a fusion table? I created a kml file with Google Maps, which was imported to Google fusion table. When I try to search the longitude & latitude in the column geometry to return the names of the zones where longitude & latitude match in one or more points inside the polyline. The geometry column in my case stores a polyline like this: Current cell value:

dynamic content in kml balloon from url

余生长醉 提交于 2019-12-11 05:22:57
问题 I have a server that is serving up an xhtml page with all of the content I want displayed in my google earth (or worldwind) balloon. I would like the placemark balloon to fetch the html page when it is clicked on the map. To make it simple, I want my balloon to be www.yahoo.com when you click it from the map. Any searching online sends me to java code that can hook into the google earth api. I am really hoping there is a client side kml way to do this. Is there an extended data tag or

Layering radar with Google Map API v3

穿精又带淫゛_ 提交于 2019-12-11 05:06:43
问题 The default weather API for Google Maps API v3 is nice, but I need an actual radar loop. I found an example of layering a KML file onto an existing map: <script language=JavaScript type=text/JavaScript> function loadGoogleMap_FacilityPage() { var myLatlng = new google.maps.LatLng(34.921467, -84.107919); var mapOptions = { zoom: 8, center: myLatlng, mapTypeId: google.maps.MapTypeId.ROADMAP, } var map = new google.maps.Map(document.getElementById("google_map"), mapOptions); var ctaLayer = new

google earth fetchKml timeout

假如想象 提交于 2019-12-11 04:08:26
问题 I am calling the goolge earth api function 'fetchKml' via javascript. When fetching large files firefox gives me a popup that says "A script on this page may be busy, or it may have stopped responding. You can stop the script now, open the script in the debugger, or let the script continue." I noticed a similar question on google groups issue 331 ('fetchKml fails on slower connections or fast connections and large KML/KMZ files'). Well alas - that issue was in 2009. Now is 2012. How do I

Configuring MIME type

别等时光非礼了梦想. 提交于 2019-12-11 04:02:27
问题 Hi I want to configure my mime type: The MIME type for KML files is * application/vnd.google-earth.kml+xml How can I do this with google app engine? I generate KML on a template that looks like this: <?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.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom"> <Document>{% for article in articles %}{% if article.geopt %} <Placemark><name></name

How do I get placemark icons to load over ssl?

牧云@^-^@ 提交于 2019-12-11 03:27:58
问题 I'm working on a web application that uses the google earth plugin. Recently, a new requirement to have non-public users logon was added, which meant that some users were now using the site over https. Among the things that broke in testing were the custom placemark icons (They were working using http). The icons are hosted on the same server which servers the page. Here are the urls for each of the protocols. http - http://localhost/Images/yellow.png https - https://localhost/Images/yellow

percent-encoded URLs are mangled by Google Earth

混江龙づ霸主 提交于 2019-12-11 03:18:44
问题 In a KML file for Google Earth consumption I am using Google Charts dynamic icons whose URLs contain percent-encode characters, e.g., this one. As can be seen by intercepting network calls, the %E2%80%A2 (bullet character) is mangled by Google Earth into %C3%A2%C2%80%C2%A2, which causes the icon retrieval to fail. The problem is that the KML spec is extremely vague: of the IconStyle Icon href element it will only say that it is "an HTTP address [...] used to load an icon". So, can any Googler