Exemple #1
0
 public void changeMap(Map map) {
   isCompleted = false;
   this.map = map;
   this.startWidth = map.getWidth();
   this.startHeight = map.getHeight();
   paint = new Paint();
   imgMatrix = new Matrix();
   mapGC();
   loadMap();
 }
Exemple #2
0
 public MapView(BaseMapScreen baseMapScreen, Map map) {
   super(baseMapScreen.getContext());
   this.baseMapScreen = baseMapScreen;
   this.map = map;
   this.startWidth = map.getWidth();
   this.startHeight = map.getHeight();
   paint = new Paint();
   imgMatrix = new Matrix();
   loadMapHandler = new LoadMapHandler();
   initRouteParams();
   loadMap();
 }