Fit All Markers Of GoogleMap In Android

So you’ve seen posts in forums that show you how to fit all markers in Android’s map. However, you notice the top part gets cut off.

The solution is to set the top padding of the Google Map to the height of your marker Drawable.

Here is the code to have all markers shown in the map.

Now, to make sure all the markers get shown within the map, simply get the height of the Drawable and apply it to the map’s padding.

Related Posts Plugin for WordPress, Blogger...

Leave a Reply

Your email address will not be published. Required fields are marked *