*
* @param arguments the arguments containing the information
* @return {@link MarkerOptions} instance
*/
public static MarkerOptions getMarkerOptions(Object[] arguments) {
MarkerOptions options = new MarkerOptions();
// LatLng
options.setPosition(new LatLng(
(Double) arguments[OPTIONS_LAT_INDEX],
(Double) arguments[OPTIONS_LNG_INDEX]));
// Draggable
options.setDraggable((Boolean)arguments[OPTIONS_DRAGGABLE_INDEX]);
// Animation
options.setAnimation(getMarkerAnimation((Double)arguments[OPTIONS_ANIMATION_INDEX]));
// Visible
options.setVisible((Boolean)arguments[OPTIONS_VISIBLE_INDEX]);
// Clickable
options.setClickable((Boolean)arguments[OPTIONS_CLICKABLE_INDEX]);
return options;
}