class ZoomedLayoutScheme extends LayoutScheme
Layout for zoom levels based off of a power-of-2 scheme, used in Leaflet et al.
- Alphabetic
- By Inheritance
- ZoomedLayoutScheme
- LayoutScheme
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
ZoomedLayoutScheme(crs: CRS, tileSize: Int, resolutionThreshold: Double)
- crs
The CRS this zoomed layout scheme will be using
- tileSize
The size of each tile in this layout scheme
- resolutionThreshold
The percentage difference between a cell size and a zoom level and the resolution difference between that zoom level and the next that is tolerated to snap to the lower-resolution zoom level. For example, if this paramter is 0.1, that means we're willing to downsample rasters with a higher resolution in order to fit them to some zoom level Z, if the difference is resolution is less than or equal to 10% the difference between the resolutions of zoom level Z and zoom level Z+1.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- val crs: CRS
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
levelFor(extent: Extent, cellSize: CellSize): LayoutLevel
- Definition Classes
- ZoomedLayoutScheme → LayoutScheme
- def levelForZoom(worldExtent: Extent, id: Int): LayoutLevel
- def levelForZoom(id: Int): LayoutLevel
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val resolutionThreshold: Double
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val tileSize: Int
-
def
toString(): String
- Definition Classes
- ZoomedLayoutScheme → AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
zoom(x: Double, y: Double, cellSize: CellSize): Int
This will calcluate the closest zoom level based on the resolution in a UTM zone containing the point.
This will calcluate the closest zoom level based on the resolution in a UTM zone containing the point. The calculated zoom level is up to some percentage (determined by the resolutionThreshold) less resolute then the cellSize. If the cellSize is more resolute than that threshold's allowance, this will return the next zoom level up.
-
def
zoomIn(level: LayoutLevel): LayoutLevel
- Definition Classes
- ZoomedLayoutScheme → LayoutScheme
-
def
zoomOut(level: LayoutLevel): LayoutLevel
- Definition Classes
- ZoomedLayoutScheme → LayoutScheme