Using OpenGL on top of MKMapView?

I have some data that I would like to make on top of MKMapView using OpenGL. Currently, I can achieve this by placing a transparent OpenGL layer on top of MKMapView and relying on it using OpenGL commands.

However, the problem is synchronizing the drawing of the OpenGL layer with the drawing that MKMapView does. I can get around this by relying on touch events, this works well until you “spill” a card that causes a continuous series of draws for animations that I don’t detect.

Another idea was to use MKOverlayView and we hope that it will be possible to draw an OpenGL drawing with it. But I'm not sure exactly how the application

+3
source share
1 answer

I would recommend evaluating the BA3 Altus display engine . It is fully built in OpenGL, so in the worst case, you can just visualize the same context. However, it would be better if you could use their support for geo-located raster, vector, and marker elements.

Full disclosure: I am friends with the authors, but have no financial interests.

0
source

Source: https://habr.com/ru/post/1781160/


All Articles