Class OpenStreetMapProvider
java.lang.Object
com.codename1.maps.providers.MapProvider
com.codename1.maps.providers.TiledProvider
com.codename1.maps.providers.OpenStreetMapProvider
This is an OpenStreetMap Provider http://www.openstreetmap.org/
-
Field Summary
Fields inherited from class TiledProvider
_url, _zoomLevel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe provider attribution.intMaximal zoom level.Methods inherited from class TiledProvider
bboxFor, scale, tileFor, urlModifier and TypeMethodDescriptionReturns the bounding box of a position ina given zoom levelscale(int zoomLevel) Scale to the zoom leveltileFor(BoundingBox bbox) Gets a tile for the given bounding boxprotected Stringurl(int zoomLevel, int xTile, int yTile) build a url request for a tileMethods inherited from class MapProvider
maxZoomFor, minZoomLevel, projection, tileSize, tileSize, translateModifier and TypeMethodDescriptionintmaxZoomFor(Tile tile) Returns the maximum zoom of a specific Tile.intMinimal zoom level user is able to see.Gets the Provider projectiontileSize()Gets the tile sizevoidRequest map to provide tiles of specific sizes.Translates position by [pixelsX, pixelsY] at zoomLevel acordingly to maps scale.Methods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitModifier and TypeMethodDescriptionprotected Objectclone()booleanIndicates whether some other object is "equal to" this one.final ClassgetClass()Returns the runtime class of an object.inthashCode()Returns a hash code value for the object.final voidnotify()Wakes up a single thread that is waiting on this object's monitor.final voidWakes up all threads that are waiting on this object's monitor.toString()Returns a string representation of the object.final voidwait()Causes current thread to wait until another thread invokes the method or the method for this object.final voidwait(long timeout) Causes current thread to wait until either another thread invokes the method or the method for this object, or a specified amount of time has elapsed.final voidwait(long timeout, int nanos) Causes current thread to wait until another thread invokes the method or the method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
-
Constructor Details
-
OpenStreetMapProvider
public OpenStreetMapProvider()Empty Constructor
-
-
Method Details
-
attribution
The provider attribution.
Returns
a String of the provider attribution
- Specified by:
attributionin classMapProvider
-
maxZoomLevel
public int maxZoomLevel()Maximal zoom level. Zoom levels are counted from zero to maxZoomLevel(). 0 is farest view, where the scale is greatest.- Specified by:
maxZoomLevelin classMapProvider
-