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