private void Mapa_CameraChanged(object sender, CameraChangedEventArgs e) { pincentro.Position = new Position(mapa.CameraPosition.Target.Latitude, mapa.CameraPosition.Target.Longitude); lat1 = mapa.CameraPosition.Target.Latitude; lon1 = mapa.CameraPosition.Target.Longitude; act_dire(); }
void onCameraChanged(object sender, CameraChangedEventArgs e) { if (CameraPositionChangedCommand != null && CameraPositionChangedCommand.CanExecute(null)) { CameraPositionChangedCommand.Execute(e.Position); } }
private void PositionMap_CameraChanged(object sender, CameraChangedEventArgs e) { // If the car position has been saved, don't move the pin // otherwise, center it on the camera target. if (!Settings.CarPositionSaved) { pin.Position = new Position(PositionMap.CameraPosition.Target.Latitude, PositionMap.CameraPosition.Target.Longitude); } }
private void CamManagerActiveCameraChanged(object sender, CameraChangedEventArgs e) { if (e.Camera.CameraType == CameraType.FirstPerson) { RemoveEntity(_playerEntityManager.Player); } else { AddEntity(_playerEntityManager.Player, false); } }
private void Map_CameraChanged(object sender, CameraChangedEventArgs e) { if (map.CameraPosition.Zoom < 10) { map.Pins.Clear(); } else { LoadFavList(); LoadPlaces(); LoadCases(); } }
private void UpdateBasicEffect( object sender, CameraChangedEventArgs e ) { this._basicEffect.Projection = this._camera.Projection; this._basicEffect.View = this._camera.View; this._basicEffect.World = this._camera.World; }
void OnCameraChanged(CameraChangedEventArgs e) { if (e.PositionChanged) { Point newColRow = CalculateColumnRowFromCameraPosition(e.Camera.Position); if (newColRow != columnRow) { if (newColRow.X > columnRow.X) { columnRow.X = newColRow.X; UpdateRightColumn(); } if (newColRow.X < columnRow.X) { columnRow.X = newColRow.X; UpdateLeftColumn(); } if (newColRow.Y > columnRow.Y) { columnRow.Y = newColRow.Y; UpdateTopRow(); } if (newColRow.Y < columnRow.Y) { columnRow.Y = newColRow.Y; UpdateBottomRow(); } Vector2 location = new Vector2((float)columnRow.X / (float)WidthInTiles, (float)columnRow.Y / (float)WidthInTiles); locationVar.Set(location); } } }
private void CameraOnChanged(object sender, CameraChangedEventArgs args) { EmitCameraChanged(_camera); }
private void PositionMap_CameraChanged(object sender, CameraChangedEventArgs e) { pin.Position = new Position(PositionMap.CameraPosition.Target.Latitude, PositionMap.CameraPosition.Target.Longitude); }
private async void SpotsMap_CameraChanged(object sender, CameraChangedEventArgs e) { await RefreshMap(new Location(e.Position.Target.Latitude, e.Position.Target.Longitude)); }