diff --git a/app/src/main/java/com/example/nemophila/LoginActivity.java b/app/src/main/java/com/example/nemophila/LoginActivity.java index 033fa07..7e63aa1 100644 --- a/app/src/main/java/com/example/nemophila/LoginActivity.java +++ b/app/src/main/java/com/example/nemophila/LoginActivity.java @@ -26,6 +26,11 @@ private AccountsRest AccountsRest; private Nemophila nemophila; + //座標指定 + private double defaultLat = 34.74; + private double defaultLong = 135.26; + private float defaultZoom = 15f; + @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); @@ -35,6 +40,11 @@ nemophila = (Nemophila) this.getApplication(); //Nemophilaにtokenとuidがある場合ログイン画面をスキップ if ((nemophila.getUid() != null) && (nemophila.getToken() != null)){ + //座標指定(仮) + nemophila.setCameraLatitude(defaultLat); + nemophila.setCameraLongitude(defaultLong); + nemophila.setZoom(defaultZoom); + Intent intent = new Intent(LoginActivity.this,MapsActivity.class); startActivity(intent); return; @@ -71,6 +81,11 @@ nemophila.setUid(response.body().getId()); nemophila.setToken(response.body().getToken()); + //座標指定(仮) + nemophila.setCameraLatitude(defaultLat); + nemophila.setCameraLongitude(defaultLong); + nemophila.setZoom(defaultZoom); + //mainに画面遷移 Intent intent = new Intent(LoginActivity.this,MapsActivity.class); startActivity(intent);