fixed bug with refreshing pins
Fix for refreshing pins

Fix for refreshing pins and distance coefficient
Fixed issue with invalid map size