Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple mapbox instances on android

Tags:

android

mapbox

I Need to instances of a map box map. One in an activity and the other one in fragment as a modal overlay. The map in the fragment is white and I see only the current location indicator moving, when I move the map. Is it even possible to have two instances of map box in android?

like image 336
JPLauber Avatar asked Oct 17 '22 09:10

JPLauber


1 Answers

https://github.com/mapbox/mapbox-gl-native/blob/master/platform/android/MapboxGLAndroidSDKTestApp/src/main/res/layout/fragment_dialog_map.xml#L15

   mapbox:mapbox_renderTextureMode="true"

Put this attribute to your second mapbox view.

like image 102
JPLauber Avatar answered Oct 21 '22 04:10

JPLauber