Android Programming Press on the image to return to the main documentation page.

OSMDroid

Written by Martin Pearman

List of types:

AttributionObject
BalloonMarker
BoundingBox
GeoPoint
MapView
Marker
MarkersBalloonOverlay
MarkersEventsOverlay
MarkersFocusOverlay
MarkersOverlay
MinimapOverlay
MyLocationOverlay
PathOverlay
ScaleBarOverlay
SimpleLocationOverlay
TilesOverlay
TouchEventsOverlay
XYTileSource

AttributionObject


Events:

None

Members:


  Html As String  [read only]

  LibraryName As String  [read only]

  PlainText As String  [read only]

Members description:

Html As String  [read only]
Get the licensing and attribution Strings as HTML.
LibraryName As String  [read only]
Get the name of the 3rd party library that this AttributionObject refers to.
PlainText As String  [read only]
Get the licensing and attribution Strings as plain text.

BalloonMarker


Events:

None

Members:


  Description As String  [read only]

  GeoPoint As GeoPoint  [read only]

  HOTSPOT_PLACE_BOTTOM_CENTER As org.osmdroid.views.overlay.OverlayItem.HotspotPlace

  HOTSPOT_PLACE_CENTER As org.osmdroid.views.overlay.OverlayItem.HotspotPlace

  HOTSPOT_PLACE_LEFT_CENTER As org.osmdroid.views.overlay.OverlayItem.HotspotPlace

  HOTSPOT_PLACE_LOWER_LEFT_CORNER As org.osmdroid.views.overlay.OverlayItem.HotspotPlace

  HOTSPOT_PLACE_LOWER_RIGHT_CORNER As org.osmdroid.views.overlay.OverlayItem.HotspotPlace

  HOTSPOT_PLACE_NONE As org.osmdroid.views.overlay.OverlayItem.HotspotPlace

  HOTSPOT_PLACE_RIGHT_CENTER As org.osmdroid.views.overlay.OverlayItem.HotspotPlace

  HOTSPOT_PLACE_TOP_CENTER As org.osmdroid.views.overlay.OverlayItem.HotspotPlace

  HOTSPOT_PLACE_UPPER_LEFT_CORNER As org.osmdroid.views.overlay.OverlayItem.HotspotPlace

  HOTSPOT_PLACE_UPPER_RIGHT_CORNER As org.osmdroid.views.overlay.OverlayItem.HotspotPlace

  Initialize (Title As String, Description As String, Latitude As Double, Longitude As Double, Icon As android.graphics.drawable.BitmapDrawable)

  Initialize2 (Title As String, Description As String, aLocation As android.location.Location, Icon As android.graphics.drawable.BitmapDrawable)

  Initialize3 (Title As String, Description As String, aGeoPoint As org.osmdroid.util.GeoPoint, Icon As android.graphics.drawable.BitmapDrawable)

  Initialize4 (UniqueId As String, Title As String, Description As String, Latitude As Double, Longitude As Double, Icon As android.graphics.drawable.BitmapDrawable)

  Initialize5 (UniqueId As String, Title As String, Description As String, aLocation As android.location.Location, Icon As android.graphics.drawable.BitmapDrawable)

  Initialize6 (UniqueId As String, Title As String, Description As String, aGeoPoint As org.osmdroid.util.GeoPoint, Icon As android.graphics.drawable.BitmapDrawable)

  IsEqualTo (aMarker As uk.co.martinpearman.b4a.osmdroid.views.overlays.MyOverlayItem) As Boolean

  IsInitialized As Boolean

  LayoutName As String

  MarkerHotspot As org.osmdroid.views.overlay.OverlayItem.HotspotPlace  [write only]

  Title As String  [read only]

  UniqueId As String  [read only]

Members description:

Description As String  [read only]
Get the Marker description.
GeoPoint As GeoPoint  [read only]
Get the Marker location.
HOTSPOT_PLACE_BOTTOM_CENTER As org.osmdroid.views.overlay.OverlayItem.HotspotPlace
HOTSPOT_PLACE_CENTER As org.osmdroid.views.overlay.OverlayItem.HotspotPlace
HOTSPOT_PLACE_LEFT_CENTER As org.osmdroid.views.overlay.OverlayItem.HotspotPlace
HOTSPOT_PLACE_LOWER_LEFT_CORNER As org.osmdroid.views.overlay.OverlayItem.HotspotPlace
HOTSPOT_PLACE_LOWER_RIGHT_CORNER As org.osmdroid.views.overlay.OverlayItem.HotspotPlace
HOTSPOT_PLACE_NONE As org.osmdroid.views.overlay.OverlayItem.HotspotPlace
HOTSPOT_PLACE_RIGHT_CENTER As org.osmdroid.views.overlay.OverlayItem.HotspotPlace
HOTSPOT_PLACE_TOP_CENTER As org.osmdroid.views.overlay.OverlayItem.HotspotPlace
HOTSPOT_PLACE_UPPER_LEFT_CORNER As org.osmdroid.views.overlay.OverlayItem.HotspotPlace
HOTSPOT_PLACE_UPPER_RIGHT_CORNER As org.osmdroid.views.overlay.OverlayItem.HotspotPlace
Initialize (Title As String, Description As String, Latitude As Double, Longitude As Double, Icon As android.graphics.drawable.BitmapDrawable)
Initialize the Marker using Latitude and Longitude.
Pass Null as Icon value if you want to use the default Icon.
Initialize2 (Title As String, Description As String, aLocation As android.location.Location, Icon As android.graphics.drawable.BitmapDrawable)
Initialize the Marker using a Location object.
Pass Null as Icon value if you want to use the default Icon.
Initialize3 (Title As String, Description As String, aGeoPoint As org.osmdroid.util.GeoPoint, Icon As android.graphics.drawable.BitmapDrawable)
Initialize the Marker using a GeoPoint object.
Pass Null as Icon value if you want to use the default Icon.
Initialize4 (UniqueId As String, Title As String, Description As String, Latitude As Double, Longitude As Double, Icon As android.graphics.drawable.BitmapDrawable)
Initialize the Marker using Latitude, Longitude and UniqueId.
Pass Null as Icon value if you want to use the default Icon.
Initialize5 (UniqueId As String, Title As String, Description As String, aLocation As android.location.Location, Icon As android.graphics.drawable.BitmapDrawable)
Initialize the Marker using a Location object and UniqueId.
Pass Null as Icon value if you want to use the default Icon.
Initialize6 (UniqueId As String, Title As String, Description As String, aGeoPoint As org.osmdroid.util.GeoPoint, Icon As android.graphics.drawable.BitmapDrawable)
Initialize the Marker using a GeoPoint object and UniqueId.
Pass Null as Icon value if you want to use the default Icon.
IsEqualTo (aMarker As uk.co.martinpearman.b4a.osmdroid.views.overlays.MyOverlayItem) As Boolean
Returns True if this Marker is the same object as aMarker.
IsInitialized As Boolean
LayoutName As String
MarkerHotspot As org.osmdroid.views.overlay.OverlayItem.HotspotPlace  [write only]
Set the hotspot for a Marker.
This is where the origin (0,0) of a point will be located relative to the Marker.
In other words this acts as an offset. NONE indicates that no adjustment should be made.
Title As String  [read only]
Get the Marker title.
UniqueId As String  [read only]
Get the Marker UniqueId.

BoundingBox


Events:

None

Members:


  Contains (Latitude As Double, Longitude As DoubleAs Boolean

  Contains2 (GeoPoint1 As org.osmdroid.util.GeoPoint) As Boolean

  Extend (BoundingBox1 As org.osmdroid.util.BoundingBoxE6)

  GetNorthWest As GeoPoint

  GetSouthEast As GeoPoint

  Initialize (LatitudeNorth As Double, LongitudeWest As Double, LatitudeSouth As Double, LongitudeEast As Double)

  Initialize2 (NorthWest As org.osmdroid.util.GeoPoint, SouthEast As org.osmdroid.util.GeoPoint)

  IsInitialized As Boolean

Members description:

Contains (Latitude As Double, Longitude As DoubleAs Boolean
Returns True if this BoundingBox contains the Latitude, Longitude.
Contains2 (GeoPoint1 As org.osmdroid.util.GeoPoint) As Boolean
Returns True if this BoundingBox contains GeoPoint1.
Extend (BoundingBox1 As org.osmdroid.util.BoundingBoxE6)
Extend the bounds of this BoundingBox with the bounds of BoundingBox1.
GetNorthWest As GeoPoint
Get the top left point of this BoundingBox as a GeoPoint.
GetSouthEast As GeoPoint
Get the bottom right point of this BoundingBox as a GeoPoint.
Initialize (LatitudeNorth As Double, LongitudeWest As Double, LatitudeSouth As Double, LongitudeEast As Double)
Initialise the BoundingBox with NorthWest and SouthEast Latitude and Longitude.
Initialize2 (NorthWest As org.osmdroid.util.GeoPoint, SouthEast As org.osmdroid.util.GeoPoint)
Initialise the BoundingBox with NorthWest and SouthEast GeoPoints.
IsInitialized As Boolean

GeoPoint


Events:

None

Members:


  Altitude As Int

  GetBearingTo (GeoPoint1 As org.osmdroid.util.GeoPoint) As Double

  GetDestinationPoint (Distance As Double, Bearing As FloatAs GeoPoint

  GetDistanceTo (GeoPoint1 As org.osmdroid.util.GeoPoint) As Int

  Initialize (Latitude As Double, Longitude As Double)

  Initialize2 (aLocation As android.location.Location)

  IsInitialized As Boolean

  Latitude As Double

  Longitude As Double

Members description:

Altitude As Int
Get or Set the altitude (in meters) of the GeoPoint
GetBearingTo (GeoPoint1 As org.osmdroid.util.GeoPoint) As Double
Get the bearing (in degrees) from this GeoPoint to GeoPoint1.
GetDestinationPoint (Distance As Double, Bearing As FloatAs GeoPoint
Get a new GeoPoint that is the specified Distance (in meters) and Bearing (in degrees) away from this GeoPoint.
GetDistanceTo (GeoPoint1 As org.osmdroid.util.GeoPoint) As Int
Get the distance (in metres) from this GeoPoint to GeoPoint1.
Initialize (Latitude As Double, Longitude As Double)
Initialize the GeoPoint using Latitude and Longitude.
Initialize2 (aLocation As android.location.Location)
Initialize the GeoPoint using a Location object.
IsInitialized As Boolean
Latitude As Double
Get or Set the Latitude of the GeoPoint.
Longitude As Double
Get or Set the Longitude of the GeoPoint.

MapView


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Permissions:

android.permission.ACCESS_COARSE_LOCATION
android.permission.ACCESS_FINE_LOCATION
android.permission.ACCESS_NETWORK_STATE
android.permission.ACCESS_WIFI_STATE
android.permission.INTERNET
android.permission.WRITE_EXTERNAL_STORAGE

Events:

CenterChanged
ZoomChanged

Members:


  AddOverlay (anOverlay As org.osmdroid.views.overlay.Overlay)

  AddXYTileSource (XYTileSource As uk.co.martinpearman.b4a.osmdroid.tileprovider.tilesource.MyXYTileSource)

  AnimateTo (Latitude As Double, Longitude As Double)

  AnimateTo2 (aLocation As android.location.Location)

  AnimateTo3 (aGeoPoint As org.osmdroid.util.GeoPoint)

  BringToFront

  CanZoomIn As Boolean

  CanZoomOut As Boolean

  CloudmadeTileSourceStyle As Int

  Enabled As Boolean

  FitMapToBoundingBox (BoundingBox As org.osmdroid.util.BoundingBoxE6)

  GetAttributionObjects As AttributionObject()

  GetCenter As GeoPoint

  GetMaxZoomLevel As Int

  GetMinZoomLevel As Int

  GetTileSource As String

  GetTileSources As List

  Height As Int

  Initialize (EventName As String)

  Invalidate

  Invalidate2 (arg0 As android.graphics.Rect)

  Invalidate3 (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)

  IsInitialized As Boolean

  Left As Int

  MapOrientation As Int

  RemoveOverlay (anOverlay As org.osmdroid.views.overlay.Overlay)

  RemoveOverlays

  RemoveView

  RequestFocus As Boolean

  SendToBack

  SetCenter (Latitude As Double, Longitude As Double)

  SetCenter2 (aLocation As android.location.Location)

  SetCenter3 (aGeoPoint As org.osmdroid.util.GeoPoint)

  SetDataConnectionEnabled (Enabled As Boolean)

  SetLayout (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)

  SetMultiTouchEnabled (Enabled As Boolean)

  SetTileSource (TileSource As String)

  SetZoomEnabled (Enabled As Boolean)

  Tag As Object

  Top As Int

  Visible As Boolean

  Width As Int

  Zoom As Int

  ZoomIn

  ZoomOut

Members description:

AddOverlay (anOverlay As org.osmdroid.views.overlay.Overlay)
Add an Overlay layer to the map.
AddXYTileSource (XYTileSource As uk.co.martinpearman.b4a.osmdroid.tileprovider.tilesource.MyXYTileSource)
Add an XYTileSource to the map.
AnimateTo (Latitude As Double, Longitude As Double)
Animate the map towards the given point.
AnimateTo2 (aLocation As android.location.Location)
Animate the map towards the given Location.
AnimateTo3 (aGeoPoint As org.osmdroid.util.GeoPoint)
Animate the map towards the given GeoPoint.
BringToFront
CanZoomIn As Boolean
Return whether or not the map can be zoomed in one more level.
CanZoomOut As Boolean
Return whether or not the map can be zoomed out one more level.
CloudmadeTileSourceStyle As Int
Get or Set the Cloudmade TileSource Style
Enabled As Boolean
FitMapToBoundingBox (BoundingBox As org.osmdroid.util.BoundingBoxE6)
Fit the map to the BoundingBox.
GetAttributionObjects As AttributionObject()
Returns an Array of AttributionObjects.
An AttributionObject contains licensing and attribution Strings relating to 3rd party libraries used in this B4A library.
You are required to display some or all of these Strings in your application if you use the related B4A library object(s).
GetCenter As GeoPoint
Return the map center as a GeoPoint.
GetMaxZoomLevel As Int
Return the maximum zoom level for the point currently at the map center.
GetMinZoomLevel As Int
Return the minimum zoom level for the point currently at the map center.
GetTileSource As String
Return the name of the currently selected TileSource.
GetTileSources As List
Return a List of the names of available TileSources.
Height As Int
Initialize (EventName As String)
Initialize the MapView.
Invalidate
Force the MapView to redraw itself.
This must be called after making changes to Overlay layers for example.
Invalidate2 (arg0 As android.graphics.Rect)
Invalidate3 (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
IsInitialized As Boolean
Left As Int
MapOrientation As Int
Get or Set the MapView orientation in degrees.
This is an alpha feature, results may be unpredictable!
RemoveOverlay (anOverlay As org.osmdroid.views.overlay.Overlay)
Remove an Overlay layer from the map.
RemoveOverlays
Remove all Overlays layers from the map.
RemoveView
RequestFocus As Boolean
SendToBack
SetCenter (Latitude As Double, Longitude As Double)
Set the map center.
SetCenter2 (aLocation As android.location.Location)
Set the map center using a Location.
SetCenter3 (aGeoPoint As org.osmdroid.util.GeoPoint)
Set the map center using a GeoPoint.
SetDataConnectionEnabled (Enabled As Boolean)
Set whether or not the MapView can use the device's data connection.
Useful if you are using offline tiles or the map tiles already exist in the cache.
SetLayout (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
SetMultiTouchEnabled (Enabled As Boolean)
Set whether or not the MapView multi-touch controller is enabled.
SetTileSource (TileSource As String)
Set the TileSource that the map should display.
SetZoomEnabled (Enabled As Boolean)
Set whether or not the MapView zoom control is enabled.
Tag As Object
Top As Int
Visible As Boolean
Width As Int
Zoom As Int
Get or Set the map zoom level.
ZoomIn
Zoom the map in by one zoom level.
ZoomOut
Zoom the map out by one zoom level.

Marker


Events:

None

Members:


  Description As String  [read only]

  GeoPoint As GeoPoint  [read only]

  HOTSPOT_PLACE_BOTTOM_CENTER As org.osmdroid.views.overlay.OverlayItem.HotspotPlace

  HOTSPOT_PLACE_CENTER As org.osmdroid.views.overlay.OverlayItem.HotspotPlace

  HOTSPOT_PLACE_LEFT_CENTER As org.osmdroid.views.overlay.OverlayItem.HotspotPlace

  HOTSPOT_PLACE_LOWER_LEFT_CORNER As org.osmdroid.views.overlay.OverlayItem.HotspotPlace

  HOTSPOT_PLACE_LOWER_RIGHT_CORNER As org.osmdroid.views.overlay.OverlayItem.HotspotPlace

  HOTSPOT_PLACE_NONE As org.osmdroid.views.overlay.OverlayItem.HotspotPlace

  HOTSPOT_PLACE_RIGHT_CENTER As org.osmdroid.views.overlay.OverlayItem.HotspotPlace

  HOTSPOT_PLACE_TOP_CENTER As org.osmdroid.views.overlay.OverlayItem.HotspotPlace

  HOTSPOT_PLACE_UPPER_LEFT_CORNER As org.osmdroid.views.overlay.OverlayItem.HotspotPlace

  HOTSPOT_PLACE_UPPER_RIGHT_CORNER As org.osmdroid.views.overlay.OverlayItem.HotspotPlace

  Initialize (Title As String, Description As String, Latitude As Double, Longitude As Double, Icon As android.graphics.drawable.BitmapDrawable)

  Initialize2 (Title As String, Description As String, aLocation As android.location.Location, Icon As android.graphics.drawable.BitmapDrawable)

  Initialize3 (Title As String, Description As String, aGeoPoint As org.osmdroid.util.GeoPoint, Icon As android.graphics.drawable.BitmapDrawable)

  Initialize4 (UniqueId As String, Title As String, Description As String, Latitude As Double, Longitude As Double, Icon As android.graphics.drawable.BitmapDrawable)

  Initialize5 (UniqueId As String, Title As String, Description As String, aLocation As android.location.Location, Icon As android.graphics.drawable.BitmapDrawable)

  Initialize6 (UniqueId As String, Title As String, Description As String, aGeoPoint As org.osmdroid.util.GeoPoint, Icon As android.graphics.drawable.BitmapDrawable)

  IsEqualTo (aMarker As uk.co.martinpearman.b4a.osmdroid.views.overlays.MyOverlayItem) As Boolean

  IsInitialized As Boolean

  MarkerHotspot As org.osmdroid.views.overlay.OverlayItem.HotspotPlace  [write only]

  Title As String  [read only]

  UniqueId As String  [read only]

Members description:

Description As String  [read only]
Get the Marker description.
GeoPoint As GeoPoint  [read only]
Get the Marker location.
HOTSPOT_PLACE_BOTTOM_CENTER As org.osmdroid.views.overlay.OverlayItem.HotspotPlace
HOTSPOT_PLACE_CENTER As org.osmdroid.views.overlay.OverlayItem.HotspotPlace
HOTSPOT_PLACE_LEFT_CENTER As org.osmdroid.views.overlay.OverlayItem.HotspotPlace
HOTSPOT_PLACE_LOWER_LEFT_CORNER As org.osmdroid.views.overlay.OverlayItem.HotspotPlace
HOTSPOT_PLACE_LOWER_RIGHT_CORNER As org.osmdroid.views.overlay.OverlayItem.HotspotPlace
HOTSPOT_PLACE_NONE As org.osmdroid.views.overlay.OverlayItem.HotspotPlace
HOTSPOT_PLACE_RIGHT_CENTER As org.osmdroid.views.overlay.OverlayItem.HotspotPlace
HOTSPOT_PLACE_TOP_CENTER As org.osmdroid.views.overlay.OverlayItem.HotspotPlace
HOTSPOT_PLACE_UPPER_LEFT_CORNER As org.osmdroid.views.overlay.OverlayItem.HotspotPlace
HOTSPOT_PLACE_UPPER_RIGHT_CORNER As org.osmdroid.views.overlay.OverlayItem.HotspotPlace
Initialize (Title As String, Description As String, Latitude As Double, Longitude As Double, Icon As android.graphics.drawable.BitmapDrawable)
Initialize the Marker using Latitude and Longitude.
Pass Null as Icon value if you want to use the default Icon.
Initialize2 (Title As String, Description As String, aLocation As android.location.Location, Icon As android.graphics.drawable.BitmapDrawable)
Initialize the Marker using a Location object.
Pass Null as Icon value if you want to use the default Icon.
Initialize3 (Title As String, Description As String, aGeoPoint As org.osmdroid.util.GeoPoint, Icon As android.graphics.drawable.BitmapDrawable)
Initialize the Marker using a GeoPoint object.
Pass Null as Icon value if you want to use the default Icon.
Initialize4 (UniqueId As String, Title As String, Description As String, Latitude As Double, Longitude As Double, Icon As android.graphics.drawable.BitmapDrawable)
Initialize the Marker using Latitude, Longitude and UniqueId.
Pass Null as Icon value if you want to use the default Icon.
Initialize5 (UniqueId As String, Title As String, Description As String, aLocation As android.location.Location, Icon As android.graphics.drawable.BitmapDrawable)
Initialize the Marker using a Location object and UniqueId.
Pass Null as Icon value if you want to use the default Icon.
Initialize6 (UniqueId As String, Title As String, Description As String, aGeoPoint As org.osmdroid.util.GeoPoint, Icon As android.graphics.drawable.BitmapDrawable)
Initialize the Marker using a GeoPoint object and UniqueId.
Pass Null as Icon value if you want to use the default Icon.
IsEqualTo (aMarker As uk.co.martinpearman.b4a.osmdroid.views.overlays.MyOverlayItem) As Boolean
Returns True if this Marker is the same object as aMarker.
IsInitialized As Boolean
MarkerHotspot As org.osmdroid.views.overlay.OverlayItem.HotspotPlace  [write only]
Set the hotspot for a Marker.
This is where the origin (0,0) of a point will be located relative to the Marker.
In other words this acts as an offset. NONE indicates that no adjustment should be made.
Title As String  [read only]
Get the Marker title.
UniqueId As String  [read only]
Get the Marker UniqueId.

MarkersBalloonOverlay


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

BalloonClick(ViewTag As String)
BalloonLongClick(ViewTag As String)

Members:


  AddMarkers (Markers As List)

  FocusedMarker As Marker

  GetBoundingBox As BoundingBox

  Initialize (aMapView As org.osmdroid.views.MapView, EventName As String, BalloonLayoutName As String)

  IsInitialized As Boolean

  RemoveMarker (Marker As uk.co.martinpearman.b4a.osmdroid.views.overlays.MyOverlayItem)

  RemoveMarkers

Members description:

AddMarkers (Markers As List)
Add a List of Markers to the MarkersBalloonOverlay.
FocusedMarker As Marker
Get or Set the Marker whose Balloon is displayed.
Returns Null if no Balloon is displayed.
GetBoundingBox As BoundingBox
Get a BoundingBox which represents the area that is covered by the Markers.
Initialize (aMapView As org.osmdroid.views.MapView, EventName As String, BalloonLayoutName As String)
Initialize the MarkersBalloonOverlay.
IsInitialized As Boolean
RemoveMarker (Marker As uk.co.martinpearman.b4a.osmdroid.views.overlays.MyOverlayItem)
Remove a Marker from the MarkersBalloonOverlay.
RemoveMarkers
Remove all Markers from the MarkersBalloonOverlay.

MarkersEventsOverlay


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

Click(Marker1 As Marker)
LongClick(Marker1 As Marker)

Members:


  AddMarkers (Markers As List)

  GetBoundingBox As BoundingBox

  Initialize (aMapView As org.osmdroid.views.MapView, EventName As String)

  IsInitialized As Boolean

  RemoveMarker (Marker As uk.co.martinpearman.b4a.osmdroid.views.overlays.MyOverlayItem)

  RemoveMarkers

Members description:

AddMarkers (Markers As List)
Add a List of Markers to the MarkersEventsOverlay.
GetBoundingBox As BoundingBox
Get a BoundingBox which represents the area that is covered by the Markers.
Initialize (aMapView As org.osmdroid.views.MapView, EventName As String)
Initialize the MarkersEventsOverlay.
IsInitialized As Boolean
RemoveMarker (Marker As uk.co.martinpearman.b4a.osmdroid.views.overlays.MyOverlayItem)
Remove a Marker from the MarkersEventsOverlay.
RemoveMarkers
Remove all Markers from the MarkersEventsOverlay.

MarkersFocusOverlay


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

None

Members:


  AddMarkers (Markers As List)

  GetBoundingBox As BoundingBox

  Initialize (aMapView As org.osmdroid.views.MapView)

  IsInitialized As Boolean

  RemoveMarker (Marker As uk.co.martinpearman.b4a.osmdroid.views.overlays.MyOverlayItem)

  RemoveMarkers

  SetInfoWindowBackgroundColor (Color As Int)

  SetInfoWindowDescriptionColor (Color As Int)

  SetInfoWindowDescriptionSize (Size As Float)

  SetInfoWindowMaxWidth (Width As Int)

  SetInfoWindowTitleColor (Color As Int)

  SetInfoWindowTitleSize (Size As Float)

Members description:

AddMarkers (Markers As List)
Add a List of Markers to the MarkersFocusOverlay.
GetBoundingBox As BoundingBox
Get a BoundingBox which represents the area that is covered by the Markers.
Initialize (aMapView As org.osmdroid.views.MapView)
Initialize the MarkersFocusOverlay.
IsInitialized As Boolean
RemoveMarker (Marker As uk.co.martinpearman.b4a.osmdroid.views.overlays.MyOverlayItem)
Remove a Marker from the MarkersFocusOverlay.
RemoveMarkers
Remove all Markers from the MarkersOverlay.
SetInfoWindowBackgroundColor (Color As Int)
Set the background color of the InfoWindow.
SetInfoWindowDescriptionColor (Color As Int)
Set the color of the InfoWindow description text.
SetInfoWindowDescriptionSize (Size As Float)
Set the size of the InfoWindow title text.
SetInfoWindowMaxWidth (Width As Int)
Set the maximum width (in pixels) of the InfoWindow.
200 pixels is the default width.
SetInfoWindowTitleColor (Color As Int)
Set the color of the InfoWindow title text.
SetInfoWindowTitleSize (Size As Float)
Set the size of the InfoWindow title text.

MarkersOverlay


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

Click(Title As String, Description As String, Point As GeoPoint)
LongClick(Title As String, Description As String, Point As GeoPoint)

Members:


  AddMarkers (Markers As List)

  GetBoundingBox As BoundingBox

  Initialize (aMapView As org.osmdroid.views.MapView, EventName As String)

  IsInitialized As Boolean

  RemoveMarker (Marker As uk.co.martinpearman.b4a.osmdroid.views.overlays.MyOverlayItem)

  RemoveMarkers

Members description:

AddMarkers (Markers As List)
Add a List of Markers to the MarkersOverlay.
GetBoundingBox As BoundingBox
Get a BoundingBox which represents the area that is covered by the Markers.
Initialize (aMapView As org.osmdroid.views.MapView, EventName As String)
Initialize the MarkersOverlay.
IsInitialized As Boolean
RemoveMarker (Marker As uk.co.martinpearman.b4a.osmdroid.views.overlays.MyOverlayItem)
Remove a Marker from the MarkersOverlay.
RemoveMarkers
Remove all Markers from the MarkersOverlay.

MinimapOverlay


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

None

Members:


  Height As Int

  Initialize (aMapView As org.osmdroid.views.MapView)

  IsInitialized As Boolean

  Padding As Int

  SetTileSource (TileSource As String)

  Width As Int

  ZoomDifference As Int

Members description:

Height As Int
Get or Set the height of the minimap in pixels.
Default height is 100 pixels.
Initialize (aMapView As org.osmdroid.views.MapView)
Initialize the MinimapOverlay.
IsInitialized As Boolean
Padding As Int
Get or Set the padding (in pixels) between the minimap and the bottom right hand corner of the MapView.
Default padding is 10 pixels.
SetTileSource (TileSource As String)
Set the TileSource that the minimap should display.
Width As Int
Get or Set the width of the minimap in pixels.
Default width is 100 pixels.
ZoomDifference As Int
Get or Set the difference in zoom levels between the minimap and the main MapView map.
Default value varies based upon the TileSource being used by the main MapView map.

MyLocationOverlay


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

FollowLocationAutoDisabled
LocationChanged(NewLocation As Location, IsFirstFix As Boolean)
ProviderChanged(Provider As String, Enabled As Boolean)

Members:


  CompassEnabled As Boolean

  DrawAccuracyEnabled As Boolean

  FollowLocationEnabled As Boolean

  Initialize (aMapView As org.osmdroid.views.MapView, EventName As String)

  IsInitialized As Boolean

  LastFix As LocationWrapper  [read only]

  LocationUpdateMinDistance As Float

  LocationUpdateMinTime As Long

  MyLocationEnabled As Boolean

  SetCompassCenter (X As Float, Y As Float)

Members description:

CompassEnabled As Boolean
Get or Set whether the compass is enabled.
Default value is False.
DrawAccuracyEnabled As Boolean
Get or Set whether the DrawAccuracy circle is drawn around the Person icon.
Default value is True.
FollowLocationEnabled As Boolean
Get or Set whether FollowLocation is enabled.
If FollowLocation is enabled then the map will automatically center itself on the last GPS fix.
Default value is False.
Initialize (aMapView As org.osmdroid.views.MapView, EventName As String)
Initialize the MyLocationOverlay.
IsInitialized As Boolean
LastFix As LocationWrapper  [read only]
Get the last GPS fix as a Location object.
LocationUpdateMinDistance As Float
Get or Set the minimum distance (in meters) change that should be considered a new GPS fix.
Default value is 0.
LocationUpdateMinTime As Long
Get or Set the minimum time (in milliseconds) between GPS fixes that should treat the last fix as a new fix.
Default value is 0.
MyLocationEnabled As Boolean
Get or Set whether the MyLocationOverlay should listen for GPS fixes.
Default value is False.
SetCompassCenter (X As Float, Y As Float)
Set the point at which the compass should be drawn within the MapView.
Default value is (35, 35).

PathOverlay


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

None

Members:


  AddGreatCircle (StartPoint As org.osmdroid.util.GeoPoint, EndPoint As org.osmdroid.util.GeoPoint, NumberOfPoints As Int)

  AddPoint (Latitude As Double, Longitude As Double)

  AddPoint2 (aLocation As android.location.Location)

  AddPoint3 (aGeoPoint As org.osmdroid.util.GeoPoint)

  AddPoints (GeoPoints As List)

  Alpha As Int

  ClearPath

  Color As Int

  FILL As android.graphics.Paint.Style

  FILL_AND_STROKE As android.graphics.Paint.Style

  GetAllPoints As List

  GetBoundingBox As BoundingBox

  GetNumberOfPoints As Int

  Initialize (aMapView As org.osmdroid.views.MapView, PathColor As Int)

  IsInitialized As Boolean

  PathStyle As android.graphics.Paint.Style  [write only]

  STROKE As android.graphics.Paint.Style

  StrokeWidth As Float

Members description:

AddGreatCircle (StartPoint As org.osmdroid.util.GeoPoint, EndPoint As org.osmdroid.util.GeoPoint, NumberOfPoints As Int)
Add NumberOfPoints points to the path to create a great circle path from StartPoint to EndPoint.
AddPoint (Latitude As Double, Longitude As Double)
Add a Point to the path using Latitude and Longitude.
AddPoint2 (aLocation As android.location.Location)
Add a Point to the path using a Location object.
AddPoint3 (aGeoPoint As org.osmdroid.util.GeoPoint)
Add a Point to the path using a GeoPoint object
AddPoints (GeoPoints As List)
Add a List of GeoPoints to the path.
Alpha As Int
Get or Set the Alpha transparency of the path.
Values of 0 to 255 are valid.
Default value is 255 fully opaque.
ClearPath
Clear all points from the path.
Color As Int
Get or Set the color of the path.
FILL As android.graphics.Paint.Style
Geometry and text drawn with this style will be filled, ignoring all stroke-related settings in the paint.
FILL_AND_STROKE As android.graphics.Paint.Style
Geometry and text drawn with this style will be both filled and stroked at the same time, respecting the stroke-related fields on the paint.
GetAllPoints As List
Get a List of all GeoPoints in the path.
GetBoundingBox As BoundingBox
Get a BoundingBox which represents the area that is covered by the path.
GetNumberOfPoints As Int
Get the total number of points added to the path.
Initialize (aMapView As org.osmdroid.views.MapView, PathColor As Int)
Initialize the PathOverlay and set the PathColor
IsInitialized As Boolean
PathStyle As android.graphics.Paint.Style  [write only]
Set the path style used to draw the path.
Valid values are:
PathOverlay.FILL
PathOverlay.FILL_AND_STROKE
PathOverlay.STROKE

Default value is PathOverlay.STROKE
STROKE As android.graphics.Paint.Style
Geometry and text drawn with this style will be stroked, respecting the stroke-related fields on the paint.
StrokeWidth As Float
Get or Set the stroke width used to draw the path.
Default stroke width is 2 pixels.

ScaleBarOverlay


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

None

Members:


  BOTTOM_LEFT As Int

  Initialize (aMapView As org.osmdroid.views.MapView)

  IsInitialized As Boolean

  SCALE_UNIT_IMPERIAL As Int

  SCALE_UNIT_METRIC As Int

  SCALE_UNIT_NAUTICAL As Int

  SetEnabled (Enabled As Boolean)

  SetLineColor (LineColor As Int)

  SetLineWidth (LineWidth As Float)

  SetMinZoom (MinZoom As Int)

  SetOffset (X As Float, Y As Float)

  SetPosition (Position As Int)

  SetScaleUnit (ScaleUnit As Int)

  SetTextColor (TextColor As Int)

  SetTextSize (TextSize As Float)

  TOP_LEFT As Int

Members description:

BOTTOM_LEFT As Int
Initialize (aMapView As org.osmdroid.views.MapView)
Initialise the ScaleBarOverlay.
IsInitialized As Boolean
SCALE_UNIT_IMPERIAL As Int
SCALE_UNIT_METRIC As Int
SCALE_UNIT_NAUTICAL As Int
SetEnabled (Enabled As Boolean)
Set whether the scale bar should be drawn on the map.
SetLineColor (LineColor As Int)
Set the color of the line used to draw the scale bar.
SetLineWidth (LineWidth As Float)
Set the width of the line used to draw the scale bar.
Default line width is 2 pixels.
SetMinZoom (MinZoom As Int)
Set the minimum zoom level at which to display the scale bar.
Default minimum zoom level is 0.
SetOffset (X As Float, Y As Float)
Set the offset at which to display the scale bar on the map.
Default offset is (10, 10)
SetPosition (Position As Int)
Set the position to display the scale bar within the MapView.
Possible values are:
ScaleBarOverlay.BOTTOM_LEFT
ScaleBarOverlay.TOP_LEFT

Default value is ScaleBarOverlay.TOP_LEFT
SetScaleUnit (ScaleUnit As Int)
Set the unit of measure to be used by the scale bar.
Possible values are:
ScaleBarOverlay.SCALE_UNIT_IMPERIAL
ScaleBarOverlay.SCALE_UNIT_METRIC
ScaleBarOverlay.SCALE_UNIT_NAUTICAL

Default value is ScaleBarOverlay.SCALE_UNIT_METRIC
SetTextColor (TextColor As Int)
Set the color of the scale bar label text.
SetTextSize (TextSize As Float)
Set the font size of the scale bar label text.
Default font size is 12 pixels.
TOP_LEFT As Int

SimpleLocationOverlay


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

None

Members:


  GetMyLocation As GeoPoint

  Initialize (aMapView As org.osmdroid.views.MapView)

  IsInitialized As Boolean

  SetMyLocation (Latitude As Double, Longitude As Double)

  SetMyLocation2 (aLocation As android.location.Location)

  SetMyLocation3 (aGeoPoint As org.osmdroid.util.GeoPoint)

Members description:

GetMyLocation As GeoPoint
Get the location of the overlay.
Initialize (aMapView As org.osmdroid.views.MapView)
Initialize the SimpleLocationOverlay.
IsInitialized As Boolean
SetMyLocation (Latitude As Double, Longitude As Double)
Set the location of the overlay using Latitude and Longitude.
SetMyLocation2 (aLocation As android.location.Location)
Set the location of the overlay using a Location object.
SetMyLocation3 (aGeoPoint As org.osmdroid.util.GeoPoint)
Set the location of the overlay using a GeoPoint object.

TilesOverlay


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

None

Members:


  DataConnectionEnabled As Boolean

  Initialize (Name As String, MinZoomLevel As Int, MaxZoomLevel As Int, TileSize As Int, TileFilenameEnding As String, BaseUrl As String)

  Initialize2 (Name As String, MinZoomLevel As Int, MaxZoomLevel As Int, TileSize As Int, TileFilenameEnding As String, BaseUrls() As String)

  Initialize3 (Name As String, MinZoomLevel As Int, MaxZoomLevel As Int, TileSize As Int, TileFilenameEnding As String, BaseUrl As String)

  Initialize4 (Name As String, MinZoomLevel As Int, MaxZoomLevel As Int, TileSize As Int, TileFilenameEnding As String, BaseUrls() As String)

  IsInitialized As Boolean

  LoadingBackgroundColor As Int

  LoadingLineColor As Int

Members description:

DataConnectionEnabled As Boolean
Get or Set whether this TilesOverlay will use the device's data connection.
Initialize (Name As String, MinZoomLevel As Int, MaxZoomLevel As Int, TileSize As Int, TileFilenameEnding As String, BaseUrl As String)
Initialize the TilesOverlay, the TileSource must implement the Slippy map tile naming convention.
Initialize2 (Name As String, MinZoomLevel As Int, MaxZoomLevel As Int, TileSize As Int, TileFilenameEnding As String, BaseUrls() As String)
Initialize the TilesOverlay, the TileSource must implement the Slippy map tile naming convention.
An Array of Strings is passed for the BaseUrls parameter.
Initialize3 (Name As String, MinZoomLevel As Int, MaxZoomLevel As Int, TileSize As Int, TileFilenameEnding As String, BaseUrl As String)
Initialize the TilesOverlay, the TileSource must implement the TileMapService (TMS) map tile naming convention.
Initialize4 (Name As String, MinZoomLevel As Int, MaxZoomLevel As Int, TileSize As Int, TileFilenameEnding As String, BaseUrls() As String)
Initialize the TilesOverlay, the TileSource must implement the TileMapService (TMS) map tile naming convention.
An Array of Strings is passed for the BaseUrls parameter.
IsInitialized As Boolean
LoadingBackgroundColor As Int
Get or Set the background color displayed while waiting for a tile to be downloaded.
Setting a value of Colors.TRANSPARENT will disable the display of any background color.
The default value is Colors.TRANSPARENT, no background color is displayed.
LoadingLineColor As Int
Get or Set the line color used to separate the background color drawn while waiting a tile to be downloaded.
The line color will only be drawn if the background color is NOT set to transparent.
The default value is Colors.rgb(200, 192, 192).

TouchEventsOverlay


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

Click(GeoPoint1 As GeoPoint)
LongClick(GeoPoint1 As GeoPoint)

Members:


  Initialize (EventName As String)

  IsInitialized As Boolean

Members description:

Initialize (EventName As String)
IsInitialized As Boolean

XYTileSource


Events:

None

Members:


  Initialize (Name As String, MinZoomLevel As Int, MaxZoomLevel As Int, TileSize As Int, TileFilenameEnding As String, BaseUrl As String)

  Initialize2 (Name As String, MinZoomLevel As Int, MaxZoomLevel As Int, TileSize As Int, TileFilenameEnding As String, BaseUrls() As String)

  IsInitialized As Boolean

  TMSMode As Boolean

Members description:

Initialize (Name As String, MinZoomLevel As Int, MaxZoomLevel As Int, TileSize As Int, TileFilenameEnding As String, BaseUrl As String)
Initialize the XYTileSource object.
The XYTileSource must implement the Slippy map tile naming convention.
Initialize2 (Name As String, MinZoomLevel As Int, MaxZoomLevel As Int, TileSize As Int, TileFilenameEnding As String, BaseUrls() As String)
Initialize the XYTileSource object.
The XYTileSource must implement the Slippy map tile naming convention.
An Array of Strings is passed for the BaseUrls parameter.
IsInitialized As Boolean
TMSMode As Boolean
Get or Set whether Tile Map Service (TMS) mode is enabled or not.
By default TMS mode is NOT enabled.
Top