mapbox-gl-native icon indicating copy to clipboard operation
mapbox-gl-native copied to clipboard

Mapbox 5.1.x not working well on old Androids like Jelly Bean?

Open cammace opened this issue 9 years ago • 4 comments

Originally ticketed in https://github.com/mapbox/mapbox-java/issues/589 by @leocarona

After upgrading Mapbox from 5.0.x to 5.1.x, I began having a few issues on Android 4.1.2, and my project (as well as Mapbox as long as I know) sets minSdkVersion to API 15.

I've been using custom markers (as suggested here #3756) and it works just fine with Mapbox 5.0.x. Though, after upgrading to Mapbox 5.1.x I began having issues with zoom (double tap does zoom in as excepted, but pinching doesn't work at all), and when a Marker in clicked, rarely a infoWindow opens (I couldn't find a standard of when it usually opens, but most often nothing is happening when a marker is clicked).

cammace avatar Oct 06 '17 15:10 cammace

I've also tested by adding only regular markers (new MarkerViewOptions()), and by removing my custom markerview adapter so that the default one is used. I still get the same issues.

I thought it could be happening because I had too many markers and because my device is old and very limited. I then uninstalled the app to clear all data and added only 2 regular markers (MarkerViewOptions), but I keep having the same issues.

I get none of these issues when I test on a more modern device (with a newer version of Android/API) though.

leocarona avatar Oct 07 '17 16:10 leocarona

Looks like same issue as #10026, #10101 and the others referenced in it?

leocarona avatar Oct 09 '17 23:10 leocarona

@leocarona are you setting custom id on Marker in relation with not opening an infowindow? (this is not allowed and will break info windows). I just verified that InfoWindows still work correctly on master and the release branch.

related to the touch issue, as you indicated this is a duplicate for https://github.com/mapbox/mapbox-gl-native/issues/10101.

Going to close this issue as both non reproducible as a duplicate.

Let us know if you have any more questions or bugs!

tobrun avatar Oct 11 '17 13:10 tobrun

No, I don't set Marker's id. I've extended BaseMarkerViewOptions here to add my own tag attribute. And I've added these custom markers to the maps as you can see here.

Can you see something unusual on the way how I'm adding my custom markers or the MarkerViewAdapter?

I've tried to comment out addMarkerViewAdapter and to add regular markers with MarkerViewOptions but still when I click them on the map no infoWindow appears (API 15).

leocarona avatar Oct 11 '17 14:10 leocarona