Package world.mappable.mapkit.map

Class CameraPosition

java.lang.Object
    ↳ world.mappable.mapkit.map.CameraPosition

class CameraPosition implements Serializable

The position of the camera.

Summary

Constructors

Signature and Description

CameraPosition(@NonNull Point target,
               float zoom,
               float azimuth,
               float tilt)

CameraPosition()
Use constructor with parameters in your code.

Methods

Type and modifiers

Method and Description

Point

getTarget()
The point the camera is looking at.

float

getZoom()
Zoom level.

float

getAzimuth()
Angle between north and the direction of interest on the map plane, in degrees in the range [0, 360).

float

getTilt()
Camera tilt in degrees.

void

serialize(world.mappable.runtime.bindings.Archive archive)

Constuctors

CameraPosition

CameraPosition(@NonNull Point target,
               float zoom,
               float azimuth,
               float tilt)


CameraPosition

CameraPosition()

Use constructor with parameters in your code.

This one is for bindings only!


Methods

getTarget

@NonNull
Point getTarget()

The point the camera is looking at.


getZoom

float getZoom()

Zoom level.

0 corresponds to the whole world displayed in a single tile.


getAzimuth

float getAzimuth()

Angle between north and the direction of interest on the map plane, in degrees in the range [0, 360).


getTilt

float getTilt()

Camera tilt in degrees.

0 means vertical downward.


serialize

@Override
void serialize(world.mappable.runtime.bindings.Archive archive)