google-earth-plugin

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

Can you change the view in Google Earth API from “Earth” to “Map” like in Google Maps?

柔情痞子 提交于 2019-12-11 04:59:19
问题 I am developing a web page which uses the Google Earth plugin. I would like to display the map like in the first image with the "Earth" and "Satellite/Map" view options like you can in Google Maps, or at least be able to just show the map in "Satellite/Map" view: Currently this is what the view looks like: Is this possible? 回答1: Yes, you can use the Google Maps V3 to switch between Google Maps and the Google Earth Plug-in. The google-maps-utility-library-v3 can be used to make this easier.

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

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

google.load never calls callback

送分小仙女□ 提交于 2019-12-10 18:45:23
问题 I am trying to use the Google Earth plug-in, and have found that it's rather particular about how it is called: if called outside the main flow of the Javascript execution (via setTimeout, for example), it simply refuses to call the load callback. The example below is self-contained illustration. Change change which of the last two lines is commented out to see it work or not. What's going on? <html> <head> <title>Sample</title> <script type="text/javascript" src="https://www.google.com/jsapi

Is there any workaround for disabling the “auto tilt when zooming” feature of the Google Earth plugin?

試著忘記壹切 提交于 2019-12-10 18:13:11
问题 Recent versions of Google Earth are shipping with a feature called "Auto tilt when zooming". If enabled, Google earth automatically tilts the camera towards the horizon as you zoom closer to the surface. This feature can be disabled from within the GUI (Preferences -> Navigation tab). Unfortunately, I have so far not found a way to disable it for the Google Earth plugin. Aseemingly the client setting corresponds to a registry key (HKCU\Software\Google\Google Earth Plus\SwoopEnabled). There

Google earth api javascript control

天涯浪子 提交于 2019-12-10 17:24:53
问题 I have an HTML file in which the camera flies from space to a street view and I only need to move forward, in a random direction to the next streetview and keep moving. Just like keeping the up arrow pressed. Does anyone know how to do it, please? Thank you very much! 回答1: I don't think this is possible, the Google Earth Api (to date) does not expose any methods to control the street-view mode other that enabling/disabling. All movement is via user input rather than programmatic control. That

How to Enable Google Maps Earth View without Plugin

我与影子孤独终老i 提交于 2019-12-08 16:23:37
问题 I'm evaluating options for a 3d globe viewer that doesn't require any download/install. As an alternative to Cesium.js, I'm also taking a look at Google Maps Js API v3. Recently I've noticed that WebGL enabled browsers seem to be able to switch into Earth view in Google Maps - without the plugin? This is not to be confused with the 45° View, which is still fairly limited in its coverage. Here's a screenshot of Sydney in Google Maps using the Tilt control (seen in bottom right corner, once you

lazy / demand load KML in google maps or google earth plugin?

谁说胖子不能爱 提交于 2019-12-06 12:57:24
Is it possible to lazy load KML files once a Google Map or Google Earth Plugin instance is started? Maybe there is there a "bounding box" event that I can use to queue needed KML files? Edit => Found an answer: Found this little tid-bit ( http://code.google.com/apis/maps/documentation/javascript/events.html ): Note: If you are trying to detect a change in the viewport, be sure to use the specific bounds_changed event rather than constituent zoom_changed and center_changed events. Because the Maps API fires these latter events independently, getBounds() may not report useful results until after

Google Earth Api - programmatically enter StreetView mode

谁都会走 提交于 2019-12-04 04:28:18
问题 I'm trying to give google earth api a start point which I get back from Google map Api v3(I have lat and lng). The thing I want to do is give a location to Google Earth and it can automatically moved to street view level. So far what I did can only move to ground level. The following code is how I try move Google Earth's camera var lookAt = DS_ge.createLookAt(''); lookAt.setLatitude(myRoute.steps[0].path[0].lat()); lookAt.setLongitude(myRoute.steps[0].path[0].lng()); lookAt.setRange(1000.0);