Please add a doc for createMap.