private void setCenterInMap ( ) { final Coordinate actCenter = getCenter ( ) ; if ( getInitialized ( ) && null != actCenter ) { if ( logger . isTraceEnabled ( ) ) { logger . trace ( "setting center in OpenLayers map: {}, animation: {}" , actCenter , animationDuration . get ( ) ) ; } // using Double objects instead of primitives works here jsMapView . call ( "setCenter" , actCenter . getLatitude ( ) , actCenter . getLongitude ( ) , animationDuration . get ( ) ) ; } }
sets the value of the center property in the OL map .