public void open ( Object object , GeoPoint position , int offsetX , int offsetY ) { close ( ) ; //if it was already opened mRelatedObject = object ; mPosition = position ; mOffsetX = offsetX ; mOffsetY = offsetY ; onOpen ( object ) ; MapView . LayoutParams lp = new MapView . LayoutParams ( MapView . LayoutParams . WRAP_CONTENT , MapView . LayoutParams . WRAP_CONTENT , mPosition , MapView . LayoutParams . BOTTOM_CENTER , mOffsetX , mOffsetY ) ; if ( mMapView != null && mView != null ) { mMapView . addView ( mView , lp ) ; mIsVisible = true ; } else { Log . w ( IMapView . LOGTAG , "Error trapped, InfoWindow.open mMapView: " + ( mMapView == null ? "null" : "ok" ) + " mView: " + ( mView == null ? "null" : "ok" ) ) ; } }
open the InfoWindow at the specified GeoPosition + offset . If it was already opened close it before reopening .