Android Map Extensions on zoom cluster transition - android

I was implementig maps extensions in my solution, and i cant figure out how to activate the cluster transition animation. There is a class called ClusterAnimator but is not used in the example.
So the question is, how can activate the cluster transitions in android map extensions implementation using the default clustering strategy?.
I want to get the same transition than the original maps library does on zoom in and out with the markers and clusters.

Have you set your clustermanager as the mapview's OnMapCameraChangeListener ?
Take a look at the BigClusteringDemoActivity demo-application, which does the following:
getMap().setOnCameraChangeListener(mClusterManager);
EDIT I wrongly assumed that the question was about Google Maps Android API utility library and its ClusterManager, which it wasn't.

Related

How can i create a google maps marker that i customize at runtime android kotlin

How can i achieve a marker like the one in the picture below,that i can customize for every item at runtime,based on the item's attributes,in this example,price.
I have some knowledge about markers and customization,so im not a complete newbie,for example i was able to achieve this:
But in this case nothing is dynamic,the marker is the same for every item so it's not like what i want to achieve.
Have you looked at the utility library? It supports an IconGenerator class which you can use to display text on a marker. This seems to accomplish your use case.
See: https://github.com/googlemaps/android-maps-utils

How can I add markers on navigationlauncher of mapbox?

I'm using mapbox for map navigation.. is it possible to add markers on navigation view on mapbox like the waze app? when you start navigating markers are still shown on navigation
The NavigationView allows access to the MapboxMap via NavigationView#retrieveMap(). Once initialized, you should be able to use this to create your own SymbolManager using the annotation plugin. You can then use the plugin as your normally would to add / remove custom markers to the map.

How to put drawable for polyline pattern in Mapbox?

Just like for marker where we can put drawable for its icon, such as with Marker's .SetIcon(), how to do the same with Mapbox's polyline?
I've searched Google but, CMIIW, seems like there isn't a way to do that yet? Some links I think are related:
Github - Dotted Polyline on Android
Runtime Styling API
Any suggestion?
Unfortunately, Polyline doesn't support custom patterns. What I'd suggest is using LineLayer with PropertyFactory.linePattern() where you pass ID of an image previously added to the map via MapboxMap#addImage().
Here is an example activity that uses LineLayer.

Google Map Marker shadow API V2 Android

Is there a way to add shadow conveniently as in V3? Otherwise my solution is to add another marker to the same location with its icon the shadow of the original marker's icon.. and with click listener disabled.. That seems bad though. Any idea? Thanks in advance!:)
Create a Bitmap that contains both marker and its shadow and assign it using BitmapDescriptorFactory.fromBitmap or simply create a png file that contains all you need and use BitmapDecriptorFactory.fromResource.

GPolyline overlay in android MapView

I have a working mapview application in which I can hit a service and show GPoints on the map as overlay.
What I want to do next is show an encoded Gpolyline as an overlay on my mapView.
When I try to instantiate a GPolyline polyline object in my main activity, eclipse doesn't recognize the class. Is there a library import I am missing?
A quick example of adding a GPolyline to the mapView in an android application would be a great help.
I think the problem you're having is that there aren't GPolyline's in Android's version of Google Maps, they're Javascript/AJAX specific. What you want to do is draw out the lines manually in an Overlay or OverlayItem. See this answer, for more details on specifically how to do this.
The Hello, MapView tutorial has a short example on drawing to an Overlay and the com.google.android.maps package docs should show you what's available in Android's version of Google Maps.

Categories

Resources