// Called when GPSdata is received public void HandleGPSReceived(object sender, GPSDataReceivedEventArgs e) { // Updating the model model.SetGPSCoordinates(e.latitude, e.longitude, e.heading); IMapModel mapModel = transform.GetComponent <MapController>().GETMapModel(); mapModel.setCurrentLocation(e.latitude, e.longitude, e.heading); IMapView mapView = transform.GetComponent <MapController>().GETMapView(); mapView.setCurrentPositionPin(e.latitude, e.longitude, e.heading); IMapMenuView mapMenuView = transform.GetComponent <MapMenuController>().GETMapMenuView(); mapMenuView.setCurrentPositionPin(e.latitude, e.longitude, e.heading); mapMenuView.MiniMapRender(); IResultPanelModel resultPanelModel = transform.GetComponent <ResultPanelController>().GETResultPanelModel(); resultPanelModel.setLatLon(e.latitude, e.longitude); }