var coords = mapCenter.Latitude + ',' + mapCenter.Longitude;
var gearthUrl = 'http://maps.google.com/maps?q=' + coords + '&q=' +
zoomLevel + '&output=kml';

(it's a google maps url, because it uses Gmaps ability to generate a
kml file. A kml file should load in Google Earth)

On Sun, Jan 29, 2012 at 5:04 PM, Ozalice <[email protected]> wrote:
> I have a mapping program and when I zoom on to a selected area I run
> this .hta which allows me to click a button and opens area within my
> mapping program in Bing.  Here is the Bing script
>
>        }
>        var coords = mapCenter.Latitude + '~' + mapCenter.Longitude;
>        var bingUrl = 'http://www.bing.com/maps/?v=2&cp=' + coords +
> '&lvl=' + zoomLevel + '&sty=h';
>
>        if (shell != null) {
>            shell.run(bingUrl);
>        } else {
>            // Fall back to current browser
>            window.open (bingUrl, 'bingWindow');
>        }
> };
> })();
>
> I'm hoping to use same but open this reference area within my mapping
> program to open up in Google Earth.  Any suggestions?
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Maps API V2" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/google-maps-api?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to