I'm trying to make Google Maps in a Fragment. I implemented clustering which works correctly (mechanism). But sometimes the cluster icon don't appear as you can see above:
Is there anyone that had a similar problem and know how to solve it?
If you want I can include my code.
The problem seems to be and update of Google play services.
Until Google fix it, there are some solutions, see the answer of #Alexandr to solve it.
The method onBeforeClusterRendered of com.google.maps.android.clustering.view.DefaultClusterRenderer seems to be the problem
Related
I'm looking to create a circle menu for markers in my app that uses Google maps.
I've found this online example of what I am trying to do:http://demo-ee.com/index.php/examples/view/circle-menu-for-marker-with-mx-google-maps-for-expressionengine#
The problem is that this is for google maps in a webview, I'm looking to do this on Android.
Does anyone know if this is possible to achieve with google maps for Android and if it is, how much work would be involved to do it?
Is it possible to rebuild this example code in java to use in an Android app?
thanks
I put this as an answer and not as a comment, but I don't think you can achieve the same.
First of all, on android you don't have the "hover" callback for maps, you can only use the onMarkerClick listener.
You could try to build a custom infowindow (there are a few tutorial online but never followed, so I can't give you a trusted one, you have to try :( ) and check if the iw can be placed around your item. Unfortunately on android there is a limited set of functionalities, but to be honest, I would explore a different UX for that (cards, dialogfragment or other).
Check how google maps behaves when clicking on a place (a view scrollable from bottom with details).
You can also think about using a toolbar/expandingtoolbar
I have seen a lot of posts, but when I pass the .apk project to a friend, my friend cannot see the maps. It only shows the +- arrows and a gray background. On my phone and tablet it works fine, but on his phone it does not.
Can help me with this, or pass me a link to a similar problem?
make sure your maps api key is setup correctly. You probably have a missing mapsapi key or an invalid one.
I am in a situation where, even if there are no maps being displayed due to no connection (the screen is just blank with not features available), I still want to add the markers and polylines onto the Google Map.
Is this possible?
It seems that if there is no data and no maps have been loaded that nothing is displayed?
THANKS IN ADVANCE
This issue is described here: http://code.google.com/p/gmaps-api-issues/issues/detail?id=5017
There seems to be a workaround of not using ACCESS_NETWORK_STATE.
They will probably fix it completly in the next release.
Over the past few days, I am trying to find a step - by - step tutorial to implement google places with the updated version of google maps (in eclipse for Android) with no success.
In the old tutorials I find , the map doesn't appear, because it is not updated in the v2.
Can anyone suggest a way to proceed? I feel lost with all the scattered information I get, and I don't have the experience to change the old examples by myself.
I want to make a simple app, that finds my current location and displays the cafes and restaurants, within 3Km distance. At this point I have tha map showing my location, and I need a tutorial to guide me into implementing Google Places from scratch.
Please help!
I'm actually making an app quite similar to yours! I haven't updated to v2 yet but from what I can tell, the only major difference in implementation is the use of a MapFragment as opposed to a MapActivity.
So you have the map up, yes? Then you should be able to make calls to Google Places the same way you did with the v1 Maps (since they're separate components and don't depend on each other). If Places is what's giving you trouble, I suggest following this tutorial: http://ddewaele.blogspot.com/2011/05/introducing-google-places-api.html. It's pretty good and only needs a couple of tweaks to get things up and running.
If you're still having trouble, post back and I might be able to help you out with some code.
i found this post helpful,i hope you will find it too,
http://mobile.tutsplus.com/tutorials/android/android-sdk-working-with-google-maps-map-setup/
I Want an idea on google maps in android .Thins is whenever i touch geopint location it should pop me up a dialog box. Any one please answer my question with one example.
Thank you.....
There's an brilliant library for maps called "Polaris Maps".
It's pretty easy to use
I think it is going to solve your problem.
There it is
http://android.cyrilmottier.com/?p=824