views:

283

answers:

1

Hey all,

Trying to replicate the behavior of ItemizedOverlay.boundCenterBottom(), inside of one of my Overlay classes. I am fairly certain that I can do this using setBounds(), but I am utterly lost as to what setBounds() is actually doing.

Thanks, Hamy

+2  A: 

mapIcon_ = mapView.getResources().getDrawable(R.drawable.map_marker_v);

    mapIcon_.setBounds(-mapIcon_.getIntrinsicWidth() / 2,
                       -mapIcon.getIntrinsicHeight(), 
                       mapIcon_.getIntrinsicWidth() / 2,
                       0);
Hamy