techdesk 1 Posted Friday at 06:32 PM 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
Dave Nottage 566 Posted Friday at 06:36 PM 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
techdesk 1 Posted Friday at 06:45 PM 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
Dave Nottage 566 Posted Friday at 07:22 PM 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
Angus Robertson 577 Posted Friday at 07:43 PM Look at the sample for Magenta GPS and Location Component at https://www.magsys.co.uk/delphi/maghardware.asp It uses Google Maps API JavaScript to display blobs on an embedded Edge browser window. Angus Share this post Link to post