On 4 July 2017 at 20:11, Lubomir I. Ivanov <[email protected]> wrote: > On 4 July 2017 at 19:26, Dirk Hohndel <[email protected]> wrote: >> >> >> I like Lubomir's idea of just using a web browser pointing at an >> appropriately >> customized web page. Let's see where this takes us. We only use Marble on >> the desktop, so the restrictions with showing web pages don't bother us. >> > > other than that the custom POC is almost done. i need like 2-3 hours > more, so it's going to be finished later today or tomorrow. >
here is an animated gif of it in action -> extract the gif from the zip file and drag & drop it in a browser to view it. https://www.dropbox.com/s/oinkj5jjvjaf3yy/WebKitGoogleMapsAnimatedGifPreview.zip?dl=0 this is the source code: https://www.dropbox.com/s/e9fbgcbjd8zyk3s/WebKitGoogleMapsSrc.zip?dl=0 to build: extract the source zip in ~/<somepath> cd ~/<somepath> qmake make the binary needs "libeay", "libssl", "ssleay" the same way the current webkit in subsurface needs them. random notes: - there seems to be some delay until the map loads for the first time, i think we can listen for that - also the first markers are not added immidiatelly (maybe it's my internet) - better animations can be added when clicking on markers, so that the map zooms and pans smoothly. the built-in animation isn't great for that. - the green tick images are just downloaded from the internet. a marker image as Qt resource should be used instead - the info boxes contents can be customized - if someone has taken photos near a dive site - even the street view thing works (by dragging the street view "human figure" from the right). - this example is running using a public API key that i've created, this probably needs to be changed to another google account. - localization is supported - e.g. passing "en_US" lubomir -- _______________________________________________ subsurface mailing list [email protected] http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
