incorporating open streetmap driven by BBC SDL2

Here you can talk about anything related to BBC BASIC, not covered in another category
jaybee
Posts: 1
Joined: Mon 04 Jul 2022, 21:23

incorporating open streetmap driven by BBC SDL2

Post by jaybee »

I would very much like to develop an app for Android/Ios using BBCSDL2 which is able to put pointers on openstreetmap in the way that the 'leaflet' javascript code does within a browser mixed with html page code. Does anyone know if this is feasible using something like 'webview' to place a browser window within the display otherwise driven by bbcbasic, the language with which I am most familiar. Data would be drawn from a database, latitude/longitude showing a flag and location name and shown within the app with relevant information out side the 'webview'. This is all above my pay grade at the moment but time and effort would mean that I would hopefully be able to crack it if known to be possible. The effect I want is already working on my website but this is all rendered from html and I cannot see how to port it to an app . . . If anyone had the time for any thoughts I would be very interested, I have searched a lot and got nowhere so far - thanks. Paul

Hated Moron
Posts: 131
Joined: Thu 07 Apr 2022, 10:10

Re: incorporating open streetmap driven by BBC SDL2

Post by Hated Moron »

jaybee wrote:
Mon 04 Jul 2022, 21:36
If anyone had the time for any thoughts I would be very interested
What this seems to boil down to is whether, and how, you can embed a web view within a BBC BASIC program. Whilst this is straightforward in Windows, I don't know how to do it in Android or iOS (as I have said before, by acting as an 'abstraction layer' SDL2 largely eliminates the need to know about platform-specific features such as this).

A Google search shows that you are not the only one to have asked a similar question. There is a query from 2018 about combining a webview and an SDL2 viewport here and another about combining a webview and an OpenGL context here (it's quite easy to create a new OpenGL context from within BBC BASIC, and several of the 3D and shader examples do that).

Unfortunately neither seems to show a clear way forward for you. :(
If you are unhappy with any aspect of this post, please report it to the forum administrator (click on the exclamation mark icon in the top-right corner) rather than complaining on the open forum or by private email.