Understanding boundCenterBottom ()

Im trying to reproduce the behavior of ItemizedOverlay.boundCenterBottom() inside one of my Overlay classes.

I'm sure I can do this with setBounds() , but I completely lost what setBounds() actually does.

+6
android google-maps overlay
source share
1 answer

I believe that I found the answer

 mapIcon_ = mapView.getResources().getDrawable(R.drawable.map_marker_v); mapIcon_.setBounds(-mapIcon_.getIntrinsicWidth() / 2, -mapIcon.getIntrinsicHeight(), mapIcon_.getIntrinsicWidth() / 2, 0); 
+8
source share

All Articles