fix the scaling problem in MapDataLayer