Skip to content

Cannot get markerCollection.setInfoWindowAdapter to compile #9

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

Open
alan-leslie opened this issue Jun 30, 2021 · 8 comments
Open

Cannot get markerCollection.setInfoWindowAdapter to compile #9

alan-leslie opened this issue Jun 30, 2021 · 8 comments
Assignees

Comments

@alan-leslie
Copy link

I cannot, for the life of me, get the line:
clusterManager.markerCollection.setInfoWindowAdapter(MarkerInfoWindowAdapter(this))
to compile.

However if I comment it out and leave the setInfoWindowAdapter in the OnCreate:
googleMap.setInfoWindowAdapter(MarkerInfoWindowAdapter(this))
things look to me to work

@arriolac
Copy link
Collaborator

arriolac commented Jul 7, 2021

What error are you seeing? Also, what versions of the libraries are you using?

@arriolac arriolac self-assigned this Jul 7, 2021
@alan-leslie
Copy link
Author

alan-leslie commented Jul 8, 2021 via email

@arriolac
Copy link
Collaborator

arriolac commented Jul 8, 2021

@alan-leslie I don't see the screenshot you mentioned. Can you try attaching again?

@alan-leslie
Copy link
Author

alan-leslie commented Jul 8, 2021 via email

@arriolac
Copy link
Collaborator

arriolac commented Jul 8, 2021

The image is still not attached perhaps because you're attaching it from your mail client? Either try commenting directly on this thread through GitHub or copy/paste the error message here.

@alan-leslie
Copy link
Author

cluster_map_error

For each line in MainActivity.kt that begins with:
clusterManager.markerCollection.

I get the erroe message:

Internal Error occurred while analyzing this expression:
java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0

Something similar also comes up if I mouse over the line.

@arriolac
Copy link
Collaborator

arriolac commented Jul 8, 2021

What version of Android Studio are you using?

@alan-leslie
Copy link
Author

The version of AndroidStudio that I am using is 4.2.2.

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

2 participants