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 Aug 8, 2023. It is now read-only.
As is asserted in this comment a MGLMapView is not necessarily opaque. MGLMapSnapshotter should implement an alpha channel if the background style layer has a non-opaque fill color.
The text was updated successfully, but these errors were encountered:
UIGraphicsBeginImageContextWithOptions(mglImage.size, NO, self.options.scale);
If the image ends up getting saved out in a format that doesn't support transparency, like JPEG, the output will be no worse than it would be without this change. For images that require no alpha channel, which is the usual case, I suppose there would be a marginal increase in file size, but it shouldn't matter greatly.
1ec5
changed the title
Implement opaqueness in MGLMapSnapshotter
Implement transparency in MGLMapSnapshotter
Oct 4, 2017
As is asserted in this comment a
MGLMapView
is not necessarily opaque.MGLMapSnapshotter
should implement an alpha channel if the background style layer has a non-opaque fill color.The text was updated successfully, but these errors were encountered: