It seems that markers in an ItemizedOverlay are not shown in the map unless you call boundCenter() or boundCenterBottom() on the default marker.
Is this correct, and if so, why? Is it that a (0,0) point is not set at all by default, and thus Android has no idea how to place the markers?
Update:
I see that you also have Drawable.setBounds(), so I assume boundCenter() and boundCenterBottom() is calling this method. How is it decided which part of the Drawable is used as the pin point on the map?
See this example of how to use the
boundCenter()I believe for the boundCenter() call to work, your Drawable should have some intrinsic width and height. I’m guessing it works something like this:
This offsets the bounds from Top/Left, to Bottom/Center.