-
- All Implemented Interfaces:
-
org.osmdroid.events.MapEvent
public class ScrollEvent implements MapEvent
-
-
Constructor Summary
Constructors Constructor Description ScrollEvent(MapView source, int x, int y)note coordinates represent integer based scroll coordinates, not latitude/longitude.
-
Method Summary
Modifier and Type Method Description MapViewgetSource()Return the map which generated this event. intgetX()Return the x-coordinate scrolled to.note coordinates represent integer based scroll coordinates, not latitude/longitude. intgetY()note coordinates represent integer based scroll coordinates, not latitude/longitude. StringtoString()-
-
Constructor Detail
-
ScrollEvent
ScrollEvent(MapView source, int x, int y)
note coordinates represent integer based scroll coordinates, not latitude/longitude.
-
-
Method Detail
-
getX
int getX()
Return the x-coordinate scrolled to.note coordinates represent integer based scroll coordinates, not latitude/longitude. They aresubject to integer overflow and will be revisited in a later version of osmdroid to use long values.In some cases, osmdroid will always send a 0,0 coordinate.As such, this event is more useful to be notified when the map moves, but not really where it ended up.Use other functions in getBoundingBox and getMapCenter for that.
-
getY
int getY()
note coordinates represent integer based scroll coordinates, not latitude/longitude. They aresubject to integer overflow and will be revisited in a later version of osmdroid to use long values.Return the y-coordinate scrolled to. In some cases, osmdroid will always send a 0,0 coordinate.As such, this event is more useful to be notified when the map moves, but not really where it ended up.Use other functions in getBoundingBox and getMapCenter for that.
-
-
-
-