Quartz beta - transparent background color

2458
4
02-29-2016 10:20 AM
Highlighted
Occasional Contributor

Quartz beta - will we be able to change the background color of the map view in iOS/Android? specifically, a transparent background color so that the underlying UIView is visible?

also, will the opengl context be available?

thanks!

Tags (3)
Reply
0 Kudos
4 Replies
Highlighted
Occasional Contributor

also, can you set the map to have no basemap? (I suppose you could just load a custom basemap with transparent tiles but that seems wasteful)

Reply
0 Kudos
Highlighted
Occasional Contributor

is this the proper location to ask Quartz beta questions?

Reply
0 Kudos
Highlighted
Esri Regular Contributor

Hey Brian,

Here's what I was able to dig up for you:

  • You will be able to change the color at beta 2 although a transparent one will probably not work because of the way OpenGL renders. Do you have a specific use-case?
  • The Runtime uses a CAEGLView the context is kept private. Again, what's the use case you're looking at?
  • The map can indeed have no basemap.

I'd be interested to learn a little more about what you're trying to do that you want the transparency and the OpenGL context.

Hope this helps.

Nick.

Reply
0 Kudos
Highlighted
Occasional Contributor

thanks nick!

1. overlaying the map on other content. for iOS, wouldn't this work:

view.opaque = NO;

view.backgroundColor = [UIColor clearColor];

and then in the gl render code:

glClearColor(0.0f, 0.0f, 0.0f, 0.0f);

2. not really needed, just asking

3. cool, thanks. is this available in beta1 right now?

when is beta2 going to be released?

Reply
0 Kudos