incorporating open streetmap driven by BBC SDL2
-
- Posts: 1
- Joined: Mon 04 Jul 2022, 21:23
incorporating open streetmap driven by BBC SDL2
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
Re: incorporating open streetmap driven by BBC SDL2
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.
