MapWormhole

Wormhole used for maps rendering.

Constructors

Link copied to clipboard
constructor(environment: Environment<out Any, GeoPosition>, comp: Component, m: MapViewPosition)
Initializes a new MapWormhole copying the state of the one in input.

Properties

Link copied to clipboard
val MAX_ZOOM: Byte = 18
Maximum zoom.
Link copied to clipboard
Link copied to clipboard
protected open var rotation: Double
Link copied to clipboard
open var zoom: Double

Functions

Link copied to clipboard
open fun center()
Points the center of the view on the center of the environment.
Link copied to clipboard
abstract fun getEnvPoint(viewPoint: Point): P
open fun getEnvPoint(viewPoint: Point): GeoPosition
Converts a point from the view-space to the env-space.
Link copied to clipboard
abstract fun getViewPoint(envPoint: P): Point
open fun getViewPoint(environmentPoint: GeoPosition): Point
Converts a point from the env-space to the view-space.
Link copied to clipboard
Gets the Position.
Link copied to clipboard
Gets the view's size.
Link copied to clipboard
abstract fun isInsideView(viewPoint: Point): Boolean
open fun isInsideView(viewPoint: Point): Boolean
Check if a point of the view-space is "visible", i.e.
Link copied to clipboard
open fun optimalZoom()
Automatically sets the zoom rate in order to make the environment entirely visible on the view.
Link copied to clipboard
abstract fun rotateAroundPoint(p: Point, a: Double)
open fun rotateAroundPoint(p: Point, a: Double)
Rotates around a point into the view-space.
Link copied to clipboard
abstract fun setEnvPosition(envPoint: P)
Sets the position to the view-point corresponding to envPoint.
Link copied to clipboard
abstract fun setViewPosition(viewPoint: Point)
open fun setViewPosition(p: Point)
Sets the Position to viewPoint.
Link copied to clipboard
open fun setZoom(z: Double)
Changes the zoom factor.
Link copied to clipboard
abstract fun zoomOnPoint(p: Point, z: Double)
open fun zoomOnPoint(zoomPoint: Point, z: Double)
Zooms on a point into the view-space.