Quartz beta - transparent background color

3030
4
02-29-2016 10:20 AM
BrianFlood
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)
0 Kudos
4 Replies
BrianFlood
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)

0 Kudos
BrianFlood
Occasional Contributor

is this the proper location to ask Quartz beta questions?

0 Kudos
Nicholas-Furness
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.

0 Kudos
BrianFlood
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?

0 Kudos