mapbox-maps-flutter icon indicating copy to clipboard operation
mapbox-maps-flutter copied to clipboard

Fix Transparent background on iOS

Open tranhuongk opened this issue 1 year ago • 8 comments

Fix #415

What is the motivation and context behind this change?

set mapView.isOpaque = false

Pull request checklist:

  • [x] Add a changelog entry.
  • [x] Write tests for all new functionality. If tests were not written, please explain why.
  • [x] Add documentation comments for any added or updated public APIs.

tranhuongk avatar Jun 12 '24 03:06 tranhuongk

@evil159 with textureView

Flag indicating to use a TextureView as render surface for the MapWidget. Only works for Android

tranhuongk avatar Jun 24 '24 16:06 tranhuongk

@evil159 @OdNairy Can we get back to this issue?

tranhuongk avatar Jul 30 '24 16:07 tranhuongk

@evil159

tranhuongk avatar Aug 28 '24 15:08 tranhuongk

Any news on this issue? Thanks a lot for fixing this!

m4ta1 avatar Dec 18 '24 19:12 m4ta1

Hi all, sorry for the delayed reply, would it be possible to make this configurable from the outside? Like to have this as init parameter for MapWidget?

evil159 avatar Mar 10 '25 15:03 evil159

Hi Team,

I am unable to access the isOpaque property. Could you confirm if this property allows making the background of MapWidget transparent?

Currently, I am facing an issue where disabling the atmosphere in globe projection results in a black background outside the Earth. I need to make this area transparent or set a custom color.

Please let me know ASAP, as I am unable to resolve this issue.

vishnupanchal3909 avatar Mar 11 '25 05:03 vishnupanchal3909

Hi all, sorry for the delayed reply, would it be possible to make this configurable from the outside? Like to have this as init parameter for MapWidget?

@evil159 thanks for getting back to this issue. Having an init parameter like "background-opacity" for MapWidget would be a great solution. Situation right now: Working on layer level by setStyleLayerProperty('background', 'background-opacity', 0) makes the background successfully transparent for Android, but has no effect on iOS.

m4ta1 avatar Mar 11 '25 06:03 m4ta1

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant avatar Apr 25 '25 21:04 CLAassistant

@tranhuongk Thank you for your PR. Since there is no progress with the suggested changed I'm closing this PR. I've created an internal ticket to add a configuration option for enabling transparency on iOS: https://mapbox.atlassian.net/browse/MAPSFLT-405

evil159 avatar Oct 16 '25 07:10 evil159