I have implemented a plugin to open GoogleMaps v2 on android the map works great
but when i atach the window to the unity view the map dont draw, the unity windows overdarw the map, after minimize the app is the other way the map draws but the view dont.
Any have any suggestion how to handle this situation.
I have tried make the maps the contentView and that work good, but unity stops recibing messages from the plugin until y switch back to the unityView wit setContentView.
see the picture to understand what im trying to archive.
The only partial solution I have found so far is to force the zOrderOnTop option in the GoogleMapOptions that you instantiate your MapFrament with.
Ex:
GoogleMapOptions options = new GoogleMapOptions();
options.mapType(GoogleMap.MAP_TYPE_HYBRID);
options.compassEnabled(false);
options.zOrderOnTop(true);
Now the downside of this is that you can no longer render anything on top of the Map itself, and the default Google controls wont appear. So the only way to work around that is to draw anything you need to the side of the map.
I haven’t been able to figure out a real solution to the main problem. I am guessing we need a way to access the underlying OpenGL layer on the MapFragment or Unity’s OpenGL layer.