protected void setDefaultInfoWindowLocation ( ) { int s = mOutline . getPoints ( ) . size ( ) ; if ( s == 0 ) { mInfoWindowLocation = new GeoPoint ( 0.0 , 0.0 ) ; return ; } //TODO: as soon as the polygon bounding box will be a class member, don't compute it again here. mInfoWindowLocation = mOutline . getCenter ( null ) ; }
Internal method used to ensure that the infowindow will have a default position in all cases so that the user can call showInfoWindow even if no tap occured before . Currently set the position on the center of the polygon bounding box .