summaryrefslogtreecommitdiff
path: root/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/camera/CameraUpdate.java
blob: 33f551550baa6d937259ddd0d5c89064967a4d56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
package com.mapbox.mapboxsdk.camera;

import com.mapbox.mapboxsdk.geometry.LatLng;

public final class CameraUpdate {

    /**
     * Direction that the camera is pointing in, in degrees clockwise from north.
     */
    private final float bearing;

    /**
     * The location that the camera is pointing at.
     */
    private final LatLng target;

    /**
     * The angle, in degrees, of the camera angle from the nadir (directly facing the Earth). See tilt(float) for details of restrictions on the range of values.
     */
    private final float tilt;

    /**
     * Zoom level near the center of the screen. See zoom(float) for the definition of the camera's zoom level.
     */
    private final float zoom;

    /**
     * Package Private Constructor to only be used CameraUpdateFactory
     * @param bearing Final Bearing
     * @param target Final Target
     * @param tilt Final Tilt
     * @param zoom Final Zoom
     */
    CameraUpdate(float bearing, LatLng target, float tilt, float zoom) {
        this.bearing = bearing;
        this.target = target;
        this.tilt = tilt;
        this.zoom = zoom;
    }

    public float getBearing() {
        return bearing;
    }

    public LatLng getTarget() {
        return target;
    }

    public float getTilt() {
        return tilt;
    }

    public float getZoom() {
        return zoom;
    }
}