Esempio n. 1
0
 public double getScaleForZoom(double zoom, String units) {
   double resolution = this.getResolutionForZoom(zoom);
   return OpenLayers.Util.getScaleFromResolution(resolution, units);
 }
Esempio n. 2
0
 public double getZoomFromScale(double scale, boolean closest) {
   double resolution = OpenLayers.Util.getResolutionFromScale(scale, getCurrentUnits());
   return this.getZoomForResolution((Double) resolution, closest);
 }