Jump to content

Recommended Posts

I have decided to use EdgeBrowser to display the GPS location.
If I for example type in a gps location using google maps, I can see the pin exactly. But I want to build a sort of tracker using delphi and EdgeBrowser. The common Delphi TBWebBrowser is outdated and does not work. My idea is that I get the GPS dynamically via my serial port. I need to dynamically display the map in my browser. I can do that but the problem I am facing is that every new GPS that comes in "refreshes" the web page. That is very annoying and difficult on the eye. Anyone knows how to update/refresh the webpage without this nuisance?
 

Share this post


Link to post
Just now, techdesk said:

My idea is that I get the GPS dynamically via my serial port. I need to dynamically display the map in my browser. I can do that but the problem I am facing is that every new GPS that comes in "refreshes" the web page

It might help to show the code you're using to do this.

Share this post


Link to post

Here is the code:
procedure TForm1.FormActivate(Sender: TObject);
begin
URL:= 'http://localhost/customapi.html?lat=-33.92014638020544&lon=25.529902190019857&zoom=18&pinLat=-33.92014638020544&pinLon=25.529902190019857';
EdgeBrowser1.Navigate(URL);
end;
I have simplified for ease of understanding by placing a static GPS 
This works well
But when I change the GPS dynamically in the URL, it flashes due to "refreshing"

Share this post


Link to post
31 minutes ago, techdesk said:

Here is the code:

Unless you use the Google Maps (JavaScript) API, I think you may need to live with the fact that the page "flashes". 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×