You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 9, 2018. It is now read-only.
When using RMMapView.takeSnapshot, it looks like snapshot is using lower resolution tiles. Strangely, the markers appear to be captured at the correct resolution. Also, the stacking order of annotations is different in the snapshot vs the simulator in the top left corner. Attached are images from the simulator and the snapshot, for comparison. I'm seeing the same behavior on the simulator and a device.
I'm using mapbox-ios-sdk 1.6.0, iOS 8, iPhone 6
simulator screengrab
RMMapView.takeSnapshot result
The text was updated successfully, but these errors were encountered:
joshfisher
changed the title
Map tiles resolution in screenshot on retina device
Map tiles resolution on retina device in screenshot is lower than on screen
Feb 20, 2015
That's where the branching logic happens between drawing within CATiledLayer and drawing to a CGContext for snapshot purposes. Unfortunately when you draw to your own CATiledLayer, you can't merely request a layer snapshot of it like with normal views, so that's why this exists.
It sounds like there is a discrepancy between the two zoom levels to grab in this branching.
As for the annotations, I'm not sure what's happening there. The snapshot routine only toggles their superlayer's visibility (though not in your "capture overlay" case) and doesn't alter ordering. Probably need a call to -correctOrderingOfAllAnnotations somewhere.
We don't have the bandwidth to look at this right now, but those are some pointers until we do.
When using RMMapView.takeSnapshot, it looks like snapshot is using lower resolution tiles. Strangely, the markers appear to be captured at the correct resolution. Also, the stacking order of annotations is different in the snapshot vs the simulator in the top left corner. Attached are images from the simulator and the snapshot, for comparison. I'm seeing the same behavior on the simulator and a device.
I'm using mapbox-ios-sdk 1.6.0, iOS 8, iPhone 6
simulator screengrab
RMMapView.takeSnapshot result
The text was updated successfully, but these errors were encountered: