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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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