Skip to content
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

Trigger onMapMarkerClick(id) programatically? #44

Open
xaxist opened this issue Jun 13, 2015 · 4 comments
Open

Trigger onMapMarkerClick(id) programatically? #44

xaxist opened this issue Jun 13, 2015 · 4 comments

Comments

@xaxist
Copy link

xaxist commented Jun 13, 2015

Hello,

I tried to trigger the onMapMarkerClick(1) function programatically, but the marker title and map toolbar is not shown. The marker has to be tapped manually. Is there any way, this can be achieved?

Thanks in advance.

@petzel
Copy link
Contributor

petzel commented Jun 15, 2015

onMapMarkerClick is a callback that is only called once a marker has been clicked - it does not perform the actual clicking on the marker. Are you trying to show an info window programmatically, or what are you trying to do?

@xaxist
Copy link
Author

xaxist commented Jun 17, 2015

I want to open the map activity with the marker already clicked. Is there any other method using which this can be achieved?

@nwadams
Copy link
Contributor

nwadams commented Jun 18, 2015

in the google map you can call `showInfoWindow() on a marker as described here. https://developers.google.com/maps/documentation/android/infowindows

You can probably add support for calling showInfoWindow() on the map markers in this project to support that behavior.

@xaxist
Copy link
Author

xaxist commented Dec 6, 2015

@petzel - Can you please add support for showInfoWindow() for the map marker?

AirMapMarker marker = new AirMapMarker.Builder()
                .id(id)
                .position(latLng)
                .title(title)
                .bitmap(markerBitmap)
                .build();

map.addMarker(marker);

marker.showInfoWindow(); // Can you please add this function?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants