Initialize (Title AsString, Description AsString, Latitude AsDouble, Longitude AsDouble, Icon As android.graphics.drawable.BitmapDrawable)
Initialize2 (Title AsString, Description AsString, aLocation As android.location.Location, Icon As android.graphics.drawable.BitmapDrawable)
Initialize3 (Title AsString, Description AsString, aGeoPoint As org.osmdroid.util.GeoPoint, Icon As android.graphics.drawable.BitmapDrawable)
Initialize4 (UniqueId AsString, Title AsString, Description AsString, Latitude AsDouble, Longitude AsDouble, Icon As android.graphics.drawable.BitmapDrawable)
Initialize5 (UniqueId AsString, Title AsString, Description AsString, aLocation As android.location.Location, Icon As android.graphics.drawable.BitmapDrawable)
Initialize6 (UniqueId AsString, Title AsString, Description AsString, aGeoPoint As org.osmdroid.util.GeoPoint, Icon As android.graphics.drawable.BitmapDrawable)
IsEqualTo (aMarker As uk.co.martinpearman.b4a.osmdroid.views.overlays.MyOverlayItem) AsBoolean
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 AsString, Description AsString, Latitude AsDouble, Longitude AsDouble, 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 AsString, Description AsString, 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 AsString, Description AsString, 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 AsString, Title AsString, Description AsString, Latitude AsDouble, Longitude AsDouble, 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 AsString, Title AsString, Description AsString, 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 AsString, Title AsString, Description AsString, 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) AsBoolean
Returns True if this Marker is the same object as aMarker.
IsInitialized AsBoolean
LayoutName AsString
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.
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 AsDouble, Longitude AsDouble)
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 AsBoolean
Return whether or not the map can be zoomed in one more level.
CanZoomOut AsBoolean
Return whether or not the map can be zoomed out one more level.
CloudmadeTileSourceStyle AsInt
Get or Set the Cloudmade TileSource Style
Enabled AsBoolean
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 AsInt
Return the maximum zoom level for the point currently at the map center.
GetMinZoomLevel AsInt
Return the minimum zoom level for the point currently at the map center.
GetTileSource AsString
Return the name of the currently selected TileSource.
GetTileSources AsList
Return a List of the names of available TileSources.
Height AsInt
Initialize (EventName AsString)
Initialize the MapView.
Invalidate
Force the MapView to redraw itself. This must be called after making changes to Overlay layers for example.
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 AsBoolean
SendToBack
SetCenter (Latitude AsDouble, Longitude AsDouble)
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 AsBoolean)
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.
Initialize (Title AsString, Description AsString, Latitude AsDouble, Longitude AsDouble, Icon As android.graphics.drawable.BitmapDrawable)
Initialize2 (Title AsString, Description AsString, aLocation As android.location.Location, Icon As android.graphics.drawable.BitmapDrawable)
Initialize3 (Title AsString, Description AsString, aGeoPoint As org.osmdroid.util.GeoPoint, Icon As android.graphics.drawable.BitmapDrawable)
Initialize4 (UniqueId AsString, Title AsString, Description AsString, Latitude AsDouble, Longitude AsDouble, Icon As android.graphics.drawable.BitmapDrawable)
Initialize5 (UniqueId AsString, Title AsString, Description AsString, aLocation As android.location.Location, Icon As android.graphics.drawable.BitmapDrawable)
Initialize6 (UniqueId AsString, Title AsString, Description AsString, aGeoPoint As org.osmdroid.util.GeoPoint, Icon As android.graphics.drawable.BitmapDrawable)
IsEqualTo (aMarker As uk.co.martinpearman.b4a.osmdroid.views.overlays.MyOverlayItem) AsBoolean
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 AsString, Description AsString, Latitude AsDouble, Longitude AsDouble, 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 AsString, Description AsString, 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 AsString, Description AsString, 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 AsString, Title AsString, Description AsString, Latitude AsDouble, Longitude AsDouble, 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 AsString, Title AsString, Description AsString, 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 AsString, Title AsString, Description AsString, 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) AsBoolean
Returns True if this Marker is the same object as aMarker.
IsInitialized AsBoolean
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.
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 AsBoolean
Padding AsInt
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 AsString)
Set the TileSource that the minimap should display.
Width AsInt
Get or Set the width of the minimap in pixels. Default width is 100 pixels.
ZoomDifference AsInt
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.
Get or Set whether the compass is enabled. Default value is False.
DrawAccuracyEnabled AsBoolean
Get or Set whether the DrawAccuracy circle is drawn around the Person icon. Default value is True.
FollowLocationEnabled AsBoolean
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 AsString)
Initialize the MyLocationOverlay.
IsInitialized AsBoolean
LastFix As LocationWrapper [read only]
Get the last GPS fix as a Location object.
LocationUpdateMinDistance AsFloat
Get or Set the minimum distance (in meters) change that should be considered a new GPS fix. Default value is 0.
LocationUpdateMinTime AsLong
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 AsBoolean
Get or Set whether the MyLocationOverlay should listen for GPS fixes. Default value is False.
SetCompassCenter (X AsFloat, Y AsFloat)
Set the point at which the compass should be drawn within the MapView. Default value is (35, 35).
Initialize (aMapView As org.osmdroid.views.MapView)
Initialise the ScaleBarOverlay.
IsInitialized AsBoolean
SCALE_UNIT_IMPERIAL AsInt
SCALE_UNIT_METRIC AsInt
SCALE_UNIT_NAUTICAL AsInt
SetEnabled (Enabled AsBoolean)
Set whether the scale bar should be drawn on the map.
SetLineColor (LineColor AsInt)
Set the color of the line used to draw the scale bar.
SetLineWidth (LineWidth AsFloat)
Set the width of the line used to draw the scale bar. Default line width is 2 pixels.
SetMinZoom (MinZoom AsInt)
Set the minimum zoom level at which to display the scale bar. Default minimum zoom level is 0.
SetOffset (X AsFloat, Y AsFloat)
Set the offset at which to display the scale bar on the map. Default offset is (10, 10)
SetPosition (Position AsInt)
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 AsInt)
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 AsInt)
Set the color of the scale bar label text.
SetTextSize (TextSize AsFloat)
Set the font size of the scale bar label text. Default font size is 12 pixels.
Initialize the TilesOverlay, the TileSource must implement the Slippy map tile naming convention. An Array of Strings is passed for the BaseUrls parameter.
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 AsBoolean
LoadingBackgroundColor AsInt
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 AsInt
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).
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 AsBoolean
TMSMode AsBoolean
Get or Set whether Tile Map Service (TMS) mode is enabled or not. By default TMS mode is NOT enabled.
Top