altered mapicon code, related to #227

altered mapicon code, related to #227