Redmine#4703: rename mapjson() to mapdata() and add extra parameter