//construct the actual marker
if (marker.getText() != null && marker.getImage() != null) {
ImageTextButton.ImageTextButtonStyle style =
new ImageTextButton.ImageTextButtonStyle();
style.imageUp = new TextureRegionDrawable(
marker.getImage().getTextureRegion());
style.font = marker.getFont();
actor = new ImageTextButton(marker.getText(), style);
} else if (marker.getText() != null) {
Label.LabelStyle style = new Label.LabelStyle();
style.font = marker.getFont();
actor = new Label(marker.getText(), style);
} else if (marker.getImage() != null) {
actor = new ImageButton(
new TextureRegionDrawable(
marker.getImage().getTextureRegion()));
}
if (actor != null) {