All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.osmdroid.events.ZoomEvent Maven / Gradle / Ivy

There is a newer version: 6.1.20
Show newest version
package org.osmdroid.events;

import org.osmdroid.views.MapView;

/*
 * The event generated when a map has finished zooming to the level zoomLevel.
 *
 * @author Theodore Hong
 */
public class ZoomEvent implements MapEvent {
	protected MapView source;
	protected int zoomLevel;

	public ZoomEvent(final MapView source, final int zoomLevel) {
		this.source = source;
		this.zoomLevel = zoomLevel;
	}

	/*
	 * Return the map which generated this event.
	 */
	public MapView getSource() {
		return source;
	}

	/*
	 * Return the zoom level zoomed to.
	 */
	public int getZoomLevel() {
		return zoomLevel;
	}

	@Override
	public String toString() {
		return "ZoomEvent [source=" + source + ", zoomLevel=" + zoomLevel + "]";
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy