google-earth-plugin

Google Earth API, KML on local Web Server [closed]

纵饮孤独 提交于 2020-02-04 05:38:05
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . I am trying to load a .kml from a webserver that we use to host our company intranet on, will this work?! The GE API loads up fine but does not currently display the KML file?! Also I cant seem to paste the code

Whats the best pratice to show multiple placemarks with photos inside of the ballons?

北战南征 提交于 2020-01-14 14:22:11
问题 I have a project as follows: Several photos are taken from a mobile, the photos are saved in a web system, which in turn displays the photos on google earth that is inside it. I've read many articles but all of them were using fetchKml, one good article that i've read was using php, but using fetchKml. I dont know if its possible using parseKml instead. Anyway, I'm not sure how to do this with the kml, so it looks tike this: My Class KMLGenerator() public static String getKMLFromObra (List

Whats the best pratice to show multiple placemarks with photos inside of the ballons?

。_饼干妹妹 提交于 2020-01-14 14:22:08
问题 I have a project as follows: Several photos are taken from a mobile, the photos are saved in a web system, which in turn displays the photos on google earth that is inside it. I've read many articles but all of them were using fetchKml, one good article that i've read was using php, but using fetchKml. I dont know if its possible using parseKml instead. Anyway, I'm not sure how to do this with the kml, so it looks tike this: My Class KMLGenerator() public static String getKMLFromObra (List

detect when google earth plugin crash

扶醉桌前 提交于 2020-01-05 05:40:28
问题 There is a way to detect from javascript if the google earth plugin is crashed, so I can reload automatically the page without user action? Thanks 回答1: I don't think you can directly assess whether the plug-in has crashed. However, you could set up an endless timer that is constantly checking something like getView() function hasCrashed() { try { var view = ge.getView(); if (view) { // plugin good } else { // plugin not good } } catch (e) { // plugin not good } // a timer that checks every

JavaScript In KML Ignored By Google Earth Plugin

瘦欲@ 提交于 2020-01-04 04:11:10
问题 I've created a simple KML file that works in the standalone Google Earth client, but won't work at all in the Google Earth Plugin (regardless of browser): <?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"> <Folder> <name>South Florida</name> <open>1</open> <Document> <name>Miami</name> <Style id="miami_style"> <IconStyle> <Icon>

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

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

How to remove a linestring which is added part by part to GE in one go?

血红的双手。 提交于 2019-12-25 01:35:41
问题 I am trying to draw a road incrementally as an animation over GE plugin. I have a set of coordinates (lat,long) in an array and I am using the following function in a loop at small time intervals to draw the entire road in small parts animatedly. var intFeatureCounter4Trace=0 function createPath(lat1,lng1,lat2,lng2,strToolType){ lineStringPlacemark = ge.createPlacemark(''); var lineString = ge.createLineString(''); lineStringPlacemark.setGeometry(lineString); lineString.setTessellate(true);

Display Dojo Dialog over Google Earth plugin

南楼画角 提交于 2019-12-24 18:42:57
问题 Common problem: I'm writing a web app with Dojo that has Google Earth front and centre (via the plugin), and I want to display Dojo dialog boxes (such as confirmations and forms) over the Google Earth display. The dijit.Dialog widget is inevitably rendered underneath the Earth display, even when the dialog has a very large z-index, and the Earth container (and internal elements) have negative z-indexes. This question is relevant - it seems due to the IFramey nature of the plugin that a shim

Issue using NetworkLinkControl for updates in GE plugin

南楼画角 提交于 2019-12-24 10:07:24
问题 I'm using KML to load an image overlay, and then I'm trying to change camera view values such as altitude using NetworkLinkControl. None of my NetworkLinkControl updates are reflected in the GE plugin. I've done quite a bit of research on this issue to no avail. Any help would be appreciated. Here are the details: The process starts with loading a NetworkLink KML file: google.earth.fetchKml(ge, href, function(kmlObject) { ... inside which the .appendChild() is done like this: walkKmlDom