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

Documentation / wiki / cookbook required ! #2

Open
Max93 opened this issue Jun 7, 2013 · 12 comments
Open

Documentation / wiki / cookbook required ! #2

Max93 opened this issue Jun 7, 2013 · 12 comments

Comments

@Max93
Copy link

Max93 commented Jun 7, 2013

hi, I can have a serious tutorial to use this extension ?
thanks.

@mg6maciej
Copy link
Owner

Hey Max,

Yes. I plan to focus on documentation more after releasing version 1.4.

@kartheininger
Copy link

Will there be a documentation? Or even gradle-documentation for the new android studio build-system?

@mg6maciej
Copy link
Owner

I cannot say when, but it will be. The wiki is open for modifications, so anyone can add info on features added by this library. For now the most useful documentation is the code of demo appliaction. And of course documentation on the Google Maps Android API v2, which this library is based on.

@mandrachek
Copy link

This is a great library, and I'm appreciative... the code for the demo application is great. But it's not even commented. I don't really know what ClusterSettings does, or how to use it. Digging into the code of the library is possible - but again, there's little no comments in the code. I'm left to copy and paste from the examples and use trial and error to sort things out. So much so, that I'm left wondering if it can even support what I need.

I'm sure you'd see more people use this if you had better documentation.

@kintanpatel
Copy link

How can implement cluster click??

@mg6maciej
Copy link
Owner

@Kintanpatel4393 Add OnMarkerClickListener to GoogleMap and check if Marker::isCluster inside callback method.
Example in demo app: https://github.com/mg6maciej/android-maps-extensions/blob/master/android-maps-extensions-demo/src/main/java/pl/mg6/android/maps/extensions/demo/DeclusterificationExampleFragment.java#L49-L58

@Psibot4
Copy link

Psibot4 commented Oct 21, 2019

Is there any link to a simple example on how to set clustering setting in onMapReady method? More specifically, adding markers dinamically. Regards!

@Psibot4
Copy link

Psibot4 commented Oct 22, 2019

How can I set clustering settings to the map returned by onMapReady method if I cannot cast com.androidmapsextension.Googlemap into com.google.android.gms.GoogleMap it says those are not convertible types. So how can I implement the extension?

@hannta
Copy link
Contributor

hannta commented Oct 22, 2019

You need to use e.g. getExtendedMapAsync() to get com.androidmapsextensions.GoogleMap object. From that object, you can call like map.setClustering(settings) to set clustering settings.

These is some examples in android-maps-extensions-demo project, under this repo, like:

@Psibot4
Copy link

Psibot4 commented Oct 22, 2019

You need to use e.g. getExtendedMapAsync() to get com.androidmapsextensions.GoogleMap object. From that object, you can call like map.setClustering(settings) to set clustering settings.

These is some examples in android-maps-extensions-demo project, under this repo, like:

getMapAsync() returns a com.google.android.gms.GoogleMap object not com.androidmapsextensions.GoogleMap objet and both objects are inconvertible to one another

@hannta
Copy link
Contributor

hannta commented Oct 22, 2019

getMapAsync() returns a com.google.android.gms.GoogleMap object not com.androidmapsextensions.GoogleMap objet and both objects are inconvertible to one another

If you want to use this library, you can not use directly Google Maps (com.google.android.gms.GoogleMap). If you use map fragment, it needs to come from com.androidmapsextensions.SupportMapFragment, not from com.google.android.gms.maps.SupportMapFragment. And to get the map object, you need to use the "extended getter" like getExtendedMapAsync().

@Psibot4
Copy link

Psibot4 commented Oct 23, 2019

getMapAsync() returns a com.google.android.gms.GoogleMap object not com.androidmapsextensions.GoogleMap objet and both objects are inconvertible to one another

If you want to use this library, you can not use directly Google Maps (com.google.android.gms.GoogleMap). If you use map fragment, it needs to come from com.androidmapsextensions.SupportMapFragment, not from com.google.android.gms.maps.SupportMapFragment. And to get the map object, you need to use the "extended getter" like getExtendedMapAsync().

Ok thank you! Thats what I needed. So that means I cannot use ClusterManager anymore right? do I need to set up manually clusterization at a certain zoom lvl or is it automatic? Also if I need diferent info window adapters for cluster and for markers do i need to change adapter depending on what is clicked everytime?

Repository owner deleted a comment from ULis3h Feb 20, 2024
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

7 participants