Added support for custom label functions (docs and demo use geohash as an example)