# Class OpenStreetMapProvider

java.lang.Object
com.codename1.maps.providers.MapProvider
com.codename1.maps.providers.TiledProvider
com.codename1.maps.providers.OpenStreetMapProvider

public class OpenStreetMapProvider extends TiledProvider
This is an OpenStreetMap Provider http://www.openstreetmap.org/

- ## Field Summary

  ### Fields inherited from class TiledProvider

  `_url, _zoomLevel`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `OpenStreetMapProvider()`
  Empty Constructor

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `attribution()`
  The provider attribution.
  `int`
  `maxZoomLevel()`
  Maximal zoom level.

  ### Methods inherited from class TiledProvider

  `bboxFor, scale, tileFor, url`

  ### Methods inherited from class MapProvider

  `maxZoomFor, minZoomLevel, projection, tileSize, tileSize, translate`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### OpenStreetMapProvider

    public OpenStreetMapProvider()
    Empty Constructor

- ## Method Details

  - ### attribution

    public String attribution()

    The provider attribution.

    ###### Returns

    a String of the provider attribution

    Specified by:
      `attribution` in class `MapProvider`

  - ### 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:
      `maxZoomLevel` in class `MapProvider`