Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.maryanovsky.map.client.opengis.wms
Class Epsg4326Projection

    java.lang.Object
      com.maryanovsky.map.client.projections.AbstractProjection
          com.maryanovsky.map.client.projections.ScaleProjection
              com.maryanovsky.map.client.opengis.wms.Epsg4326Projection

All Implemented Interfaces:
  WmsProjection, Projection

    public class Epsg4326Projection

extends ScaleProjection
implements WmsProjection

The projection for the EPSG:4326 SRS.

Author:
  Maryanovsky Alexander

Field Summary

Fields inherited from class com.maryanovsky.map.client.projections.AbstractProjection
`longitudeWraps, nativeZoom, worldHeight, worldWidth, zoomStrategy`

Method Summary
`DoublePointView` | `fromPixelToNative(int x, int y, int zoom)` Converts the specified pixel coordinates to the "native" coordinates of the projection.
`static Epsg4326Projection` | `getInstance(List<Double> resolutions, boolean longitudeWraps)` Returns an `Epsg4326Projection` with the specified list of resolutions and longitude wrapping strategy.

Methods inherited from class com.maryanovsky.map.client.projections.ScaleProjection
`fromLatLngToPixelImpl, fromPixelToLatLngImpl`

Methods inherited from class com.maryanovsky.map.client.projections.AbstractProjection
`fromLatLngToPixel, fromPixelToLatLng, getWrapSize, getWrapSizeImpl, getZoomMagnification`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods inherited from interface com.maryanovsky.map.client.Projection
`fromLatLngToPixel, fromPixelToLatLng, getWrapSize, getZoomMagnification`

Method Detail

### getInstance

    public static Epsg4326Projection getInstance(List<Double> resolutions,
                                                 boolean longitudeWraps)

  Returns an `Epsg4326Projection` with the specified list of resolutions and longitude wrapping strategy.

  Parameters:
    `resolutions` - The list of resolutions (map units per pixel) for each zoom. The first value corresponds to zoom 0 and so on.
    `longitudeWraps` - Whether the projection will cause the map to wrap around the X (longitude) axis.

### fromPixelToNative

    public DoublePointView fromPixelToNative(int x,
                                             int y,
                                             int zoom)

  Converts the specified pixel coordinates to the "native" coordinates of the projection. Unlike `Projection.fromPixelToLatLng(com.maryanovsky.gwtutils.client.geom.PointView, int)` this method should return `null` if the specified location is outside the map.

  Specified by:
    `fromPixelToNative` in interface `WmsProjection`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD