Hi there,

I just spent hours trying to figure out how to use the sky coordinate
system and I think I found a bug.

Take this star:
.A. = sky coordinate for longitude in hours, minutes, seconds:  19°
23′ 56.41"
Dec. = sky coordinate for latitude in degrees, arcminutes, arcseconds
48° 22′ 31.4"

 It's a bright orange Mag 7.93 star named KIC 010918449. I adopted it
[0].

You can look it up in Google Maps, sky mode, by searching for
"19:23:56.41, 48:22:31.4". The corresponding link is:
http://maps.google.com/sky/#latitude=48.375388&longitude=110.985042&zoom=13&Spitzer=0.00&ChandraXO=0.00&Galex=0.00&IRAS=0.00&WMAP=0.00&Cassini=0.00&slide=1&mI=-1&oI=-1

The link contains decimal coordinates, which can be derived from the
original coordinates using the instructions here:
http://code.google.com/apis/kml/documentation/kmlsky.html

"longitude" = (hour + minute/60 + second/3600)*15 − 180

However, when I use these coordinates with the Maps API Javascript,
I'm sent to the wrong place.

        map.setCenter(new GLatLng(48.3753888888889, 110.985041666667),
13);
        map.setMapType(G_SKY_VISIBLE_MAP);

        var point = new GLatLng(48.3753888888889, 110.985041666667);

After I zoomed out far enough, I noticed that I was on the other site
of the galaxy, so I tried adding a minus to "longitude".

      var point = new GLatLng(48.3753888888889, -110.985041666667);

That worked.

Cheers,

Sjors

[0] http://whitedwarf.org/palebluedot/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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