Convenience method.

@param zoom the map start zoom level
542706
public void addMapStartZoom(String zoom) {
        if (zoom != null) {
            try {
                int intZoom = Integer.parseInt(zoom);
                if (intZoom < 0 || intZoom > 21) {
                    throw new IllegalArgumentException("not a valid map start zoom: " + zoom);
                }
                setMapStartZoomLevel(intZoom);
            } catch (NumberFormatException e) {
                throw new IllegalArgumentException("not a valid map start zoom: " + zoom, e);
            }
        } else {
            setMapStartZoomLevel(-1);
        }
    }
402191
public void setMap(Map map) {
		this.map = (MapImpl) map;
		mapWidget = this.map.getMapWidget();
		delegate = new GeometryEditorImpl(mapWidget);
		editingService = new JsGeometryEditService(delegate.getEditService());
		splitService = new JsGeometrySplitService(delegate.getEditService());
		mergeService = new JsGeometryMergeService();
		renderer = new JsGeometryRenderer(delegate.getRenderer());
		styleService = new JsStyleService(delegate.getStyleService());
		snapService = new JsSnapService(this);
	}
714150
private void reloadMarker(BoundingBox latLonArea, double zoom) {
        Log.d(TAG,"reloadMarker " + latLonArea + ", zoom " + zoom);
        this.mCurrentBackgroundMarkerLoaderTask = new BackgroundMarkerLoaderTask();
        this.mCurrentBackgroundMarkerLoaderTask.execute(
                latLonArea.getLatSouth(), latLonArea.getLatNorth(),
                latLonArea.getLonEast(), latLonArea.getLonWest(), zoom);
    }
161367
def zoom(self, zoom=None):
        """"""

        status = True

        if zoom is None:
            zoom = self.grid.grid_renderer.zoom
            status = False

        # Zoom factor for grid content
        self.grid.grid_renderer.zoom = zoom

        # Zoom grid labels
        self._zoom_labels(zoom)

        # Zoom rows and columns
        self._zoom_rows(zoom)
        self._zoom_cols(zoom)

        if self.main_window.IsFullScreen():
            # Do not display labels in fullscreen mode
            self.main_window.handlers.row_label_size = \
                self.grid.GetRowLabelSize()
            self.main_window.handlers.col_label_size = \
                self.grid.GetColLabelSize()

            self.grid.HideRowLabels()
            self.grid.HideColLabels()

        self.grid.ForceRefresh()

        if status:
            statustext = _(u"Zoomed to {0:.2f}.").format(zoom)

            post_command_event(self.main_window, self.StatusBarMsg,
                               text=statustext)
1157388
public boolean isWithinZoom(float zoom) {
        return (minZoom == null || zoom >= minZoom) && (maxZoom == null || zoom <= maxZoom);
    }
428853
function(){
      if (!this.options.map){ return; }

      if (typeof this.options.map.setCenter == "function"){
        this.map = this.options.map;
        return;
      }

      this.map = new google.maps.Map(
        $(this.options.map)[0],
        this.options.mapOptions
      );

      // add click event listener on the map
      google.maps.event.addListener(
        this.map,
        'click',
        $.proxy(this.mapClicked, this)
      );

      // add dragend even listener on the map
      google.maps.event.addListener(
        this.map,
        'dragend',
        $.proxy(this.mapDragged, this)
      );

      // add idle even listener on the map
      google.maps.event.addListener(
        this.map,
        'idle',
        $.proxy(this.mapIdle, this)
      );

      google.maps.event.addListener(
        this.map,
        'zoom_changed',
        $.proxy(this.mapZoomed, this)
      );
    }
1257306
function(center, zoom) {
        if (this.animationEnabled === false && zoom != this.mapObject.zoom) {
            var mapContainer = this.getMapContainer();
            google.maps.event.addListenerOnce(
                this.mapObject, 
                "idle", 
                function() {
                    mapContainer.style.visibility = "";
                }
            );
            mapContainer.style.visibility = "hidden";
        }
        this.mapObject.setOptions({
            center: center,
            zoom: zoom
        });
    }
89682
def zoom_out(self):
        """"""

        zoom = self.grid.grid_renderer.zoom

        target_zoom = zoom * (1 - config["zoom_factor"])

        if target_zoom > config["minimum_zoom"]:
            self.zoom(target_zoom)
912163
public static <K, V> void clear(Map<K, V> map) {
        if (map != null) {
            map.clear();
        }
    }
44019
private void zoomToBounds() {
		ListGridRecord[] selection = getSelection();
		int count = selection.length;
		if (count > 0) {
			List<Feature> features = new ArrayList<Feature>();
			for (ListGridRecord lgr : selection) {
				features.add(new Feature(lgr.getAttribute(FeatureListGrid.FIELD_NAME_FEATURE_ID), featureListGrid
						.getLayer()));
			}
			mapWidget.getMapModel().zoomToFeatures(features);
		}
	}
1366810
def zoom_out(self, decrement=1):
        
        self.zoom_level -= decrement
        # make sure font size remains > 0
        if self.font_size + self.zoom_level <= 0:
            self.zoom_level = -self._font_size + 1
        TextHelper(self).mark_whole_doc_dirty()
        self._reset_stylesheet()
393567
public void execute(Bbox worldBounds) {
		View endView = mapPresenter.getViewPort().asView(worldBounds, ZoomOption.LEVEL_CLOSEST);
		mapPresenter.getViewPort().registerAnimation(NavigationAnimationFactory.createZoomIn(mapPresenter, endView));
	}
829730
function ( MouseEvent ) { 
		var ZoomBounds = _Pins.LatLngBounds;
		if ( ZoomBounds.isValid ( ) ) {
			_Map.fitBounds ( ZoomBounds );
		}
		MouseEvent.stopPropagation ( );
	}
1007264
private void reloadMarker() {
        // initialized
        if (mCurrentBackgroundMarkerLoaderTask == null) {
            // start background load
            double zoom = this.mMapView.getZoomLevelDouble();
            BoundingBox world = this.mMapView.getBoundingBox();

            reloadMarker(world, zoom);
        } else {
            // background load is already active. Remember that at least one scroll/zoom was missing
			mMissedMapZoomScrollUpdates++;
		}
    }
426817
@Override
    public boolean onZoom(ZoomEvent event) {
        lastMovement = System.currentTimeMillis();
        needsDataRefresh = true;
        return false;
    }
280474
function (center, zoom, preserveMapOffset, afterZoomAnim) {

		var zoomChanged = (this._zoom !== zoom);

		if (!afterZoomAnim) {
			this.fire('movestart');

			if (zoomChanged) {
				this.fire('zoomstart');
			}
		}

		this._zoom = zoom;
		this._initialCenter = center;

		this._initialTopLeftPoint = this._getNewTopLeftPoint(center);

		if (!preserveMapOffset) {
			L.DomUtil.setPosition(this._mapPane, new L.Point(0, 0));
		} else {
			this._initialTopLeftPoint._add(this._getMapPanePos());
		}

		this._tileLayersToLoad = this._tileLayersNum;

		var loading = !this._loaded;
		this._loaded = true;

		if (loading) {
			this.fire('load');
			this.eachLayer(this._layerAdd, this);
		}

		this.fire('viewreset', {hard: !preserveMapOffset});

		this.fire('move');

		if (zoomChanged || afterZoomAnim) {
			this.fire('zoomend');
		}

		this.fire('moveend', {hard: !preserveMapOffset});
	}
359251
public void onDoubleClick(DoubleClickEvent event) {
		//Check if there was a last click that was handled in this class.
		if (null != lastClickPosition) {
			// Zoom in on the event location.
			Bbox bounds = mapWidget.getMapModel().getMapView().getBounds();
			double x = lastClickPosition.getX() - (bounds.getWidth() / 4);
			double y = lastClickPosition.getY() - (bounds.getHeight() / 4);
			Bbox newBounds = new Bbox(x, y, bounds.getWidth() / 2, bounds.getHeight() / 2);
			mapWidget.getMapModel().getMapView().applyBounds(newBounds, ZoomOption.LEVEL_CHANGE);
		}
	}