koansys / isat

Satellite Orbit Tracker: implement most-current SGP models and algorithms in JavaScript, then use to visualize hundreds of satellites with any browser
BSD 3-Clause "New" or "Revised" License
96 stars 38 forks source link

GeoLocation is not showing in Science.nasa.gov/iSat for Alex-developer in UK #135

Open shentonfreude opened 11 years ago

shentonfreude commented 11 years ago

I've seen this myself but cannot reproduce now.

Could be that my Mac filesystem is NOT case sensitive.

Alex-developer commented 11 years ago

Chris

Little more info.

Its in Chrome and Firefox on Windows. Works fine on my MacBook

Alex

Alex-developer commented 11 years ago

Did a bit of debugging and the geolocation command is timing out in Firefox and Chrome but works fine in Internet Explorer.

It also doesn't work in my satellite tracking program so I don't think its the iSat code, I have had a look over the code and it appears fine to me

Tested using the following page https://developer.mozilla.org/de/docs/Using_geolocation

What might be a good idea is to implement the error callback on the gelocation and put in some default location? i.e.

    if ('geolocation' in navigator) {
        navigator.geolocation.getCurrentPosition(showGeo, function(error) {
            // Add some default location         
        },{timeout:5000});
    }