fixed gps map1 bug

condensed onSuccess function