Fixed issue where map layer does not update #24