public class Crs
extends com.google.gwt.core.client.JavaScriptObject
Modifier | Constructor and Description |
---|---|
protected |
Crs() |
Modifier and Type | Method and Description |
---|---|
static Crs |
add(java.lang.String name,
double min_x,
double min_y,
double max_x,
double max_y,
double a,
double b,
double c,
double d)
Adds a new Crs definition and makes it immediately available for use inside a Map.
|
static Crs |
add(java.lang.String name,
java.lang.String projection,
double a,
double b,
double c,
double d)
Adds a new Crs definition and makes it immediately available for use inside a Map.
|
static Crs |
byName(java.lang.String name) |
static Crs |
EPSG3395() |
static Crs |
EPSG3857() |
static Crs |
EPSG4326() |
static Crs |
SIMPLE() |
public static final Crs EPSG3857()
public static final Crs EPSG4326()
public static final Crs EPSG3395()
public static final Crs SIMPLE()
public static final Crs byName(java.lang.String name)
public static final Crs add(java.lang.String name, java.lang.String projection, double a, double b, double c, double d)
name
- Name for the new Crs.projection
- Name of the projection for this new Crs. It needs to be the name of a
valid projection defined in L.Projection (LonLat, SphericalMercator, Mercator).a
- a in transformation calculation (a*x + b, c*y + d)b
- b in transformation calculation (a*x + b, c*y + d)c
- c in transformation calculation (a*x + b, c*y + d)d
- d in transformation calculation (a*x + b, c*y + d)public static final Crs add(java.lang.String name, double min_x, double min_y, double max_x, double max_y, double a, double b, double c, double d)
name
- Name for the new Crs.min_x
- the min_x valuemin_y
- the min_y valuemax_x
- the max_x valuemax_y
- the max_y valuea
- a in transformation calculation (a*x + b, c*y + d)b
- b in transformation calculation (a*x + b, c*y + d)c
- c in transformation calculation (a*x + b, c*y + d)d
- d in transformation calculation (a*x + b, c*y + d)