Fixed adding resources to map.
Merge pull request #91 from kennib/fix-map

Fixed adding resources to map