-
Notifications
You must be signed in to change notification settings - Fork 694
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Popups do not open when clicked #102
Comments
any news on it ? |
Stranger yet, the annotations are only clickable after rotating the screen. |
Is this using version |
Comment #102 (comment) is using 2.3.0 |
@bsudekum Thanks for confirming. Are other Gestures (double tap, fling, long press, etc) functioning as expected or are they not responding either? The reason I ask is that the |
Same problem here with 3.0.0, with an "annotation" property I have the marker but no InfoWindow on click. Zooming, rotating, etc work. Even after rotation I still have to info window. |
Do anyone has it working, and have clickable annotations on Android? |
Facing same problems, would appreciate any feedback on that |
Looking into this: Currently noticing this during debugging:
I will have to debug deeper in the Android SDK to see what is going wrong. |
During a second round of debugging, I'm noticing that |
The reason why it's is shown the second time will probably be related to this method in onCreate: private void adjustTopOffsetPixels() {
int count = mAnnotations.size();
for (int i = 0; i < count; i++) {
Annotation annotation = mAnnotations.get(i);
if (annotation instanceof Marker) {
Marker marker = (Marker) annotation;
marker.setTopOffsetPixels(
getTopOffsetPixelsForSprite(marker.getIcon()));
}
}
for (Marker marker : mSelectedMarkers) {
if (marker.isInfoWindowShown()) {
Marker temp = marker;
temp.hideInfoWindow();
temp.showInfoWindow();
marker = temp;
}
}
} Edit: Edit 2: |
I'm going to try 2 things now,
|
@gundersen @bsudekum cc @zugaldia |
@gundersen @tobrun per voice with @bsudekum today there're two significant blocker issues before we're ready for prime time. This and mapbox/mapbox-gl-native#3584. We're looking into them. |
I am still experiencing this issue in the latest release. #293 It appears that if I add another element which changes the map dimensions the popup displays but it will render the popup in the incorrect position depending on how much the map is resized. |
@AlexLourenco this is awesome! I have a local branch that incorporates v4 but I was not able to fix this bug, so no plans to merge any time soon. |
For now, the only way to get this working is by registering to the Is that right or did I miss something? |
Any word on this? Currently having this issue with the latest releases. |
I implemented a workaround for this issue in 5.0.0. It's now fixed in master. Every time an annotation gets clicked, I manually trigger a relayout of the annotation view. |
Even when hard coding a point seen below, the popup still does not open when clicked
/cc @bleege
The text was updated successfully, but these errors were encountered: