Class Crs
java.lang.Object
com.google.gwt.core.client.JavaScriptObject
io.jmix.mapsui.widget.leaflet.client.Crs
public class Crs
extends com.google.gwt.core.client.JavaScriptObject
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic final Crs
add
(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 final Crs
Adds a new Crs definition and makes it immediately available for use inside a Map.static final Crs
static final Crs
EPSG3395()
static final Crs
EPSG3857()
static final Crs
EPSG4326()
static final Crs
SIMPLE()
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
-
Constructor Details
-
Crs
protected Crs()
-
-
Method Details
-
EPSG3857
-
EPSG4326
-
EPSG3395
-
SIMPLE
-
byName
-
add
Adds a new Crs definition and makes it immediately available for use inside a Map. The new Crs extends Crs.Simple, uses the Projection as specified in the parameters and an affine transform as specified by the a, b, c, d parameters). For the meaning of the affine transform parameters, see: http://leafletjs.com/reference.html#transformation.- Parameters:
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)- Returns:
- the Crs
-
add
public static final Crs add(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. The new Crs extends Crs.Simple, uses a plat-carré projection with the extents given by the min_* and max_* parameters. For the meaning of the affine transform parameters, see: http://leafletjs.com/reference.html#transformation.- Parameters:
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)- Returns:
- the Crs
-