Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

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

Closed
cammace opened this issue Oct 6, 2017 · 4 comments
Closed

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

cammace opened this issue Oct 6, 2017 · 4 comments
Labels
Android Mapbox Maps SDK for Android

Comments

@cammace
Copy link
Contributor

cammace commented Oct 6, 2017

Originally ticketed in mapbox/mapbox-java#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 cammace added the Android Mapbox Maps SDK for Android label Oct 6, 2017
@leocarona
Copy link

leocarona commented Oct 7, 2017

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
Copy link

leocarona commented Oct 9, 2017

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

@tobrun
Copy link
Member

tobrun commented Oct 11, 2017

@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 #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 tobrun closed this as completed Oct 11, 2017
@leocarona
Copy link

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).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android
Projects
None yet
Development

No branches or pull requests

3 participants