Fixes #5000, generate labels client side
Merge pull request #4005 from waldenraines/bug-5000

Fixes #5000, generate labels client side.