Hello Andrei,

Thanks for the quick answer ! I understand that setting
gearsLocationProviderUrls to null
remove all but the built-in GPS location provider. I have modified
hello_world_geolocation :

    geolocation.getCurrentPosition(successCallback,
                                   errorCallback,
                                   { enableHighAccuracy: true,
                                           gearsRequestAddress: true ,
                                           // tip from Andrei : remove all
                                           // but the built-in GPS location 
provider
                                           gearsLocationProviderUrls : null
                                           });

I had great hope, but this time, nothing happens... The page stays
deseparately on "Getting location..."
I guess none of the callbacks got called :-(.
I'm really wondering whether FakeGPS generates the right event used in
WinceGpsDevice.
Is there a way to look at the Gears console and see if there is an
error message somewhere ?

I have looked back on the Web and Steve Block was able to make it a
similar setup work...
( 
http://groups.google.com/group/gears-users/browse_thread/thread/2d1ba619472c3692
, 23 sep )
I would love to know the right setup and what I'm missing.

I have seen somewhere that you need to set the GPS hardware and
software port. I can set up the
software one, but the hardware one keeps getting back to "None", after
I set it up. Don't know
if this has any kind of influence, though.

Again, any help or feedback appreciated !

Erwan

On 3 déc, 12:28, Andrei Popescu <[EMAIL PROTECTED]> wrote:
> Hello,
>
> On Dec 3, 11:22 am, Erwan <[EMAIL PROTECTED]> wrote:
>
>
>
> > I have checked that hello_world_geolocation.html sets
> > enableHighAccuracy to true, so it should use the GPS. I have taken a
> > look at the gears code (very readable) but I have not been able to
> > find a way to make this simple example work the way I think it should
> > work.
>
> Could you please also try to set
> PositionOptions::gearsLocationProviderUrls to null ? That will make
> sure only the GPS provider (FakeGPS in this case) is used.
>
> Thanks,
> Andrei

Reply via email to