My javascript is very weak.
Is it possible to modify the same code below to do the following:
Make the objects loaded draggable
When the object is dropped, an ajax request to something like:
http://.../moveTo?lat=new_lat&long=new_long&id=some_way_to_uniquely_id_the_object
Any advice to offer?
Sample Code:
var ge;
// stor...
I'm having trouble laying a html div over the Google Earth plugin in a web application, any help would be appreciated.
It's fine for Map, Terrain and Hybrid mode, but on 'Earth' mode, the Flash kicks in and automatically layers the map on top.
Z-indexing doesn't help.
Presumably I could do something like:
document.getElementById('fla...
Is it possible to capture the graphics object created by the Google Earth browser plugin from a .NET WebBrowser control?
With this graphics object I could create an image to use as the background image for a panel that I can then draw on top of.
You cannot just use a WebBrowser control under a Panel control as the Google Earth plugin d...
I am trying to use the Google Earth API to create a simple view of the globe with a search field in which the user can type a location. When they hit go, the globe will zoom in on the location they typed in.
I would like the view to be looking straight down on the location they specified. I have tried the following code:
var lookAt = g...
Hello just wondering if it is possible to style a pop-up balloon via an external/linked .css file, rather than inline styles ?
thanks in advance !
.k
...
Hello,
I have a requirement to calculate the centroid or geodesic midpoint of
when a user clicks in between the lat/long grid crossing.
The crossing forms a square in most parts of GE and sometimes
elongated rectangles. This is due to the shape of the earth of course.
I'm looking for a valid mathematical formula that would allow a ...
I use custom images in google maps markers. I have included google earth control through google earth browser plugin. But they don't show custom images in google earth control? Any way I can solve this problem?
Thanks,
Jayesh
...
At this point Google does not have a Google Earth plugin API for the flash player. I would still like to use GE in my AIR(Flex) application though. Can I do this by using the HTML container? If not what is a possible solution?
...
I'm not sure if this is possible, but I would like to overlay the Normal Google Map Tiles(type: G_NORMAL_MAP) inside of the Google Earth Web Api. The satellite maps have too inconsistent of contrast for the layers I want to display.
Any help would be appreciated on if this is possible, and if it is a direction on how to do it. Thank...
code:
google.load("earth", "1");
function gemap_init()
{
google.earth.createInstance('gemap', initCB, failureCB);
}
function initCB(instance)
{
try {
ge = instance;
ge.getWindow().setVisibility(true);
console.log(ge.getPluginVersion());
google.earth.fetchKml(ge,
'http://example.com.au/maps/example.kml',
...
I am using the GWT MapWidget to view Google Earth but it seems that PopupPanels are being shown behind the earth view in Firefox. It works correctly when other map types like satellite and in IE. I understand that the way to get this to work is to use an IFrame shim but I'm not sure how to do this easily in GWT. Apparently, PopupImplIE6 ...
Question: Is it possible to use/retrieve Geodata from Google-Earth ?
What I want to do is take a little area, get terrain information (coordinates, height, elevation) and simulate how the selected area would be flooded at specified amounts of rain for a specified amount of hours.
...
I have added a kml to google earth by use of button with javascript. How can I delete that kml or clear all kml's by use of another button? thanks
...
Hi,
can anyone tell me if it is possible to display an ArcGIS dynamicMapService on GoogleEarth via the GoogleMaps API? It works fine with KML but my services are only visible on the 2D maps.
Any ideas?
...
I need to create an iPad application that uses Google Earth at its core. So Basically when the app opens it will need to run Google Earth.
Then I would need to add additional features tailored to our business such as photos of our different hotels and offers and different icons and various features.
Is this at all possible and how ...
Is there a Google Earth control available in the iPad SDK or someway of having google earth inside my new iPad app?
...
Dear all,
I have a problem using balloons in google earth.
I have some markers on the map, upon clicking on a marker, a balloon popup is shown containing some data, now when I click on the close button of that balloon, the click event of the map is also triggered which is really annoying as I have a handler attached with the map click e...
I'm trying to get the LAT/LON position of the mouse in a Windows Forms app using the browsercontrol and IGEPlugin.
Anyone got a clue?
...
Hi guys,
I got a Windows Forms app making use of Google Earth where users can draw a polygon on the map which is used as a geofence.
What I'd like to do is to be able to zoom to the polygon so that it fits nicely on screen with a click of a button. A sort of zoom to fit function.
Finding the centre of the polygon and setting the Googl...
Trying to use OpenLayers to (eventually) load markers, vectors & WMS on top of a google earth plugin base map. Google Earth does not appear to 'play well with others'.
If I instantiate a map in the 'google way':
google.earth.createInstance('map', initCB, failCB);
I get a google map that I can add google placemarks to, but I can't ...