Improve UrlMap documentation

Add type signatures in code example