Objective-C add MKOverlay to display an animated attenuation map in

I am trying to add MKOverlay to an animation card. I try to make it disappear when it is added and disappear when it is removed. Can this be done by creating a custom overlay class or overlay view class?

0
source share
2 answers

In iOS 7, you can achieve this even with the new MKOverlayRenderer . It has an alpha property that can be revived by setting a timer to re-change its value and call setNeedsDisplayInMapRect:zoomScale:

+2
source

This is more complicated in iOS 7 and above, since the overlays are no longer presented with views, but rather done using rendering (either using spare ones or rendering in the CGContext provided by CGContext).

Everything you do here will be displayed on a tile basis, which can lead to differences in appearance.

You can read more about this here: https://github.com/mapbox/mbxmapkit/issues/39

0
source

All Articles