create marker type object dynamically