set annotation draw function by type