fix parsing error for style with character point type, use in demo
refactor code for drawing key samples containing a point