kml

Rotating 2D image/scriptable object in Google Earth (Is it possible?)

Is there a way to insert a 2D image into Google Earth which could then be rotated to always face the camera? It's done in Sketch-up with the man that stands there when you initially open a new scene. You can rotate your view around, but he will keep facing you until you look at him from the top, which then reviels that he is actually a ...

dynamic map managment in google earth

Hi, My goal is to display various shapes(polygons, points, linestring) on google maps by using data entered into a Postgis database dynamically(i mean by that we can see modifications in the map in real time). I was looking for a way to do this that used the spatial structure already provided in postgis(already designating if shape is ...

Calculate lat/lng of corners of ground overlay from kml-file

I need to find the corners in lat/lng of a ground overlay given in a kml-file either in php or javascript. I.e. for a specific example I need to get from: <LatLonBox> <north>60.406505416667</north> <south>60.400570555556</south> <east>5.3351572222222</east> <west>5.3190577777778</west> <rotation>3.7088732260919</r...

How to display a moving boat in Google Earth ?

I am new to the KML format and try to figure out how to display a boat (a png), moving from a place to another along a path (a simple line drawn composed of several lines). I can see how to display a Placemark, even with an icon, and a Path, separately. What I would like to see when I click on the KML file is : the boat appearing at...

Google Maps - slow loading polygons

I've got a KML with 127 simple polygons in it. If I load them all in via GGeoXml then it's lightning fast, and when you zoom in/out it redraws all the polygons (just about) instantly. When I use either EGeoXml or CsGeoXml classes then zooming in/out becomes slow (about 4-6 seconds) as it redraws the polygons 20-30 or so at a time. I n...

KML / Google Map - Specifying the zoom level of an embeded map in an iFrame

Hi everyone, I have the following kml file that I am loading in Google map, it's locating the pointer correctly however the it's always zoomed at the maximum level. Using the google map APIs I can set my own zoom level but I am trying to do this using an embedded map in an iFrame (provided by google). Are there anyways to set the zo...

KmlScreenOverlay Buttons

KmlScreenOverlay Buttons!!? real? how? Any other way to put anything flash or html over GEPlugin? ...

RSS to KML Overlay

I'm want to display my blog as a Google Map overlay (each post contains geotags). How can I dynamically create a KML overlay from an RSS? Or better, how can I create a loop (PHP) that would display map placemarks according to given geotags? Thank you! ...

Silverlight create and execute file server-side

In my app i have the option of viewing a file that opens a window application (google earth). In order to do that i wish to create a custom file server-side under a certain relative path (eg. "//Files") and then tell the server to execute it. How can i do this? Thank you ...

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

Hi, 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 ...

Search engine optimization for kml file type

I've a web site that generates kml files. An uri like this: /tokml?gid=2846 Generates a file like this: Mt. Dana Summit Trail.kml Using Header('Content-Disposition: inline; filename="Mt. Dana Summit Trail.kml"'); in a PHP script and running on Apache http server. But a Google search on filetype:kml will not give any results from my we...

Liteweight CGI Server to use on local machine to serve KML to Google Earth via Python or similar?

Greetings, I want to write a script that handles simple http requests from Google Earth and sends back KML to display map tiles that are stored locally. I would LIKE to use Python but any language is fine. I have not ever done anything with CGI, but I think this is the simplest way to accomplish my task. This is what the Google KML d...

Need guidance on a Google Map application that has to show 250 000 polylines.

I am looking for advice for an application I am developing that uses Google Map. Summary: A user has a list of criteria for searching a street segment that fulfills the criteria. The street segments will be colored with 3 colors for showing those below average, average and over average. Then the user clicks on the street segment to see ...

Does GXml work with KMZ files?

Can Google Map API GXml parse .kmz files directly? if not how is the best way to convert .kmz file to .kml? The .kmz file is stored on database and PHP code is used to retrieve it. ...

Google Earth KML with polygones with longitudes greater than 180deg?

Hi, I use polygones in kml files for displaying a rocket's flightpath from ground into orbit in google earth kml files. the problem is, that google earth can't handle longitued greater than 180deg, so when a rocket will circle more than ones around the globe the longitued values has to be recalculated. Is there a way in using longitude...

How to get the KML data from a GGeoXml object

I load an KML file into a google map object using the following code: map = new GMap2(document.getElementById("map_canvas")); geoXml = new GGeoXml(kml); GEvent.addListener(geoXml, "load", function() { geoXml.gotoDefaultViewport(map); // I would like to read the KML contents here }); map.addOverlay(geoXml); // ... I would like...

Google Map Timeline slider

What's the best way I can take multiple KML files (each representing a different date) and create a google map with a slider? ...

Google Maps HTTP API for driving and walking directions

Do you know how I can get walking directions from Google by giving two specific coordinates? How can I send simple HTTP GET requests and have the result in a KML file? I don't want to geocode, but get the driving directions as the KML file returned by this method: http://www.gringod.com/2008/02/26/save-google-maps-driving-directions/ ...

CLLocationManager Simulator to simulate car moves ?

I'm looking since quite a long time something like a CLLocationManager simulator that would enable me to simulate GPS positions (CLLocation instances that could be retrieved through the CLLocationManager standard delegate mechanism) along a predefined route for instance (with a KML or GPX file as input, or whatever, but KML would be ni...

Converting JSON to KML

Do you know how can I convert a google walking directions JSON response to KML? I am using this method to get driving directions from Google in JSON format: Google Maps HTTP API for driving and walking directions How can I process this and export it to KML to view it on Google Earth? Is there a Java API or something else? ...