code: private void applyDirection() {
  		String imgUrl = "";
  		switch (direction) {
  			case NORTH:
  				panVector = new Coordinate(0, 1);
  				imgUrl = northImage;
  				break;
  			case EAST:
  				panVector = new Coordinate(1, 0);
  				imgUrl = eastImage;
  				break;
  			case SOUTH:
  				panVector = new Coordinate(0, -1);
  				imgUrl = southImage;
  				break;
  			case WEST:
  				panVector = new Coordinate(-1, 0);
  				imgUrl = westImage;
  				break;
  		}
  		controller = new PanArrowController(map, panVector);
  		image = new Image(getId());
  		image.setHref(imgUrl);
  		image.setStyle(style);
  		image.setBounds(new Bbox(0, 0, getWidth(), getHeight()));
  	}
docs: -------------------------------------------------------------------------