void Start() { mapImplementation = new MapImplementation(); mapWrapper = new MapWrapper(); SetupMarkerGenerator(); mapWrapper.MapImplementation = mapImplementation; mapWrapper.MarkerGenerator = markerGenerator; SetupMapInstance(); SetUpInputReader(); SetUpLoader(); SetUpManager(); manager.loadAnnotations(); PrivateTriggerMovementManagerXAxis = mapWrapper.GetReferenceLocation().Longitude; PrivateTriggerMovementManagerYAxis = mapWrapper.GetReferenceLocation().Latitude; }
void Update() { if (isOnMainWindow == true) { inputReader.Update(); } if (Input.GetKeyDown(KeyCode.Escape)) { Application.Quit(); } float restaX = Mathf.Abs((float)PrivateTriggerMovementManagerXAxis - (float)mapWrapper.GetReferenceLocation().Longitude); float restaY = Mathf.Abs((float)PrivateTriggerMovementManagerYAxis - (float)mapWrapper.GetReferenceLocation().Latitude); if ((restaX > 0.001 || restaY > 0.001) && ReportTrigger.activeInHierarchy == true) { ReportTrigger.SetActive(false); RemoveLastPutMarker(); } }
public void TestGetReferenceLocationOfCurrentMapView() { BaseCoordinates ReferenceLocation = mapWrapper.GetReferenceLocation(); map.Received(1).GetReferenceLocation(); }