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(); }
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(); }