object SphericalMercator extends Serializable
Code is partially translated from the OpenLayers.js project.
- See also
https://github.com/openlayers/ol3/blob/master/src/ol/proj/epsg3857projection.js
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- SphericalMercator
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
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
- val EXTENT: List[Double]
-
val
HALF_SIZE: Double
pre calculated earthradius * PI
-
val
RADIUS: Int
earth radius in meter
- val WORLD_EXTENT: List[Int]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
- implicit val crs: CrsFormat[SphericalMercator]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- implicit val format: Format[SphericalMercator]
-
def
fromEPSG4326(input: LatLng, factor: Double = RADIUS): SphericalMercator
Transformation from EPSG:4326 to EPSG:3857
Transformation from EPSG:4326 to EPSG:3857
- input
in LatLng format
- returns
EPSG:3857/SphericalMercator projection
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toEPSG4326(input: SphericalMercator, factor: Double = RADIUS): LatLng
Transformation from EPSG:3857 to EPSG:4326
Transformation from EPSG:3857 to EPSG:4326
- input
in EPSG:3857/SphericalMercator format
- returns
LatLng in EPSG4326 format
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated