Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Intraweb and GPS
#1
Is there any component that detects the current GPS coordinates.

Is javascript is it navigation.geolocation.getposition();

But it shows the right locations.
Reply
#2
Here is a new demo that I created to show how to use the GPS from IntraWeb in any browser that supports geolocation API, even desktop ones.

That's a good idea for a new component :-)

https://github.com/Atozed/IntraWeb/tree/...Delphi/GPS
Reply
#3
(03-22-2023, 05:08 AM)Alexandre Machado Wrote: Here is a new demo that I created to show how to use the GPS from IntraWeb in any browser that supports geolocation API, even desktop ones.

That's a good idea for a new component :-)

https://github.com/Atozed/IntraWeb/tree/...Delphi/GPS

Error in demo -> Undeclared identifier: 'ExecuteJS'
Reply
#4
What's exactly your version of IW?

In any case, just replace it with:

WebApplication.CallbackResponse.AddJavaScriptToExecuteAsCDATA('SendGeolocation();');

it will do exactly the same.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)