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

    Constructors
    Modifier
    Constructor
    Description
    protected
    Crs()
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    static final Crs
    add(String name, 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 final Crs
    byName(String name)
     
    static final Crs
     
    static final Crs
     
    static final Crs
     
    static final Crs
     

    Methods inherited from class com.google.gwt.core.client.JavaScriptObject

    cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Crs

      protected Crs()
  • Method Details

    • EPSG3857

      public static final Crs EPSG3857()
    • EPSG4326

      public static final Crs EPSG4326()
    • EPSG3395

      public static final Crs EPSG3395()
    • SIMPLE

      public static final Crs SIMPLE()
    • byName

      public static final Crs byName(String name)
    • add

      public static final Crs add(String name, 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. 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 value
      min_y - the min_y value
      max_x - the max_x value
      max_y - the max_y value
      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