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.projections
Class ResolutionListZoomStrategy

    java.lang.Object
      com.maryanovsky.map.client.projections.ResolutionListZoomStrategy

All Implemented Interfaces:
  ZoomStrategy

    public class ResolutionListZoomStrategy

extends Object
implements ZoomStrategy

An implementation of `ZoomStrategy` where each zoom has a resolution value attached to it - the number of map units (meters, degrees etc.) per pixel.

Author:
  Maryanovsky Alexander

Constructor Summary
`ResolutionListZoomStrategy(List<Double> resolutions)` Creates a new `ResolutionListZoomStrategy` with the specified list of resolutions (one for each zoom).

Method Summary
`double` | `getZoomMagnification(int startZoom, int endZoom)` See `Projection.getZoomMagnification(int, int)` for the contract of this method.

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

Constructor Detail

### ResolutionListZoomStrategy

    public ResolutionListZoomStrategy(List<Double> resolutions)

  Creates a new `ResolutionListZoomStrategy` with the specified list of resolutions (one for each zoom). The first value in the list corresponds to zoom 0 and so on.

Method Detail

### getZoomMagnification

    public double getZoomMagnification(int startZoom,
                                       int endZoom)

  See `Projection.getZoomMagnification(int, int)` for the contract of this method.

  Specified by:
    `getZoomMagnification` in interface `ZoomStrategy`

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