org.osmdroid.events.ZoomEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of osmdroid-android Show documentation
Show all versions of osmdroid-android Show documentation
An Android library to display OpenStreetMap views.
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 + "]";
}
}