Questions tagged [osmdroid]

osmdroid provides Tools / Views to interact with OpenStreetMap-Data, as a close to drop in replacement for the MapView class, with additions.

osmdroid provides Tools / Views to interact with OpenStreetMap-Data.

The OpenStreetMapView is a (almost) full/free replacement for Android's MapView (v1 API) class, usable with Android API v7 and above.

However it goes further than that, also including a modular tile provider system with support for numerous online and offline tile sources and overlay support with built-in overlays for plotting icons, tracking location, and drawing shapes.

See the project home page for more information.

1224 questions
6
votes
2 answers

Android OSM droid - set Max Zoom level

I am implementing App vith usage of osmdroid mapView. We have maps with max 16 zoom level, but Android allow us to have 18 zoom levels. Do you know how to set maximum zoom level 16 instead of default 18? Thanks Hmyzak
Waypoint
  • 17,283
  • 39
  • 116
  • 170
6
votes
3 answers

customized icon in osmdroid marker android

I have several stops in route and I wanna display them with customized icons. Everything works like a charm when using default osmdroid icons. But when I change them to image from drawable, markers are displayed above the route (see the image). …
Haniku
  • 671
  • 1
  • 7
  • 16
6
votes
2 answers

OSMDroid loads tiles extremely slowly

I am using osmdroid version 5.6.5 (the latest version), and the tiles of the map (MAPNIK) loads extremely slowly. This happens on two devices I tried the app on, both with high-speed internet connection (both cellular and WIFI). It seems like a…
Mickey
  • 1,405
  • 2
  • 13
  • 33
6
votes
1 answer

OSMDROID android 4.2: Mapquest: As of july 11,2016 direct tile access has been discontinued

While using osmdroid. I get "As of july 11,2016 direct tile access has been discontinued." I think we have to use APIKEY to use this or a new sdk, but I don't find anywhere how to do it. Please help. I am using OSMDROID 4.2 with…
Biswas Khayargoli
  • 976
  • 1
  • 11
  • 29
6
votes
1 answer

OSMdroid - error: no suitable constructor found for Overlay(no arguments) constructor Overlay.Overlay(Context) is not applicable

While extending OSMdroid Overlay class in an application import org.osmdroid.views.overlay.Overlay; ... public class MapOverlayArea extends Overlay implements TextToSpeech.OnInitListener, OnTouchListener { ... I receive an error: error: no…
tony gil
  • 9,424
  • 6
  • 76
  • 100
6
votes
3 answers

Osmdroid insert text inside marker

How I can insert text inside Osmdroid marker? Suppose i need place several markers on map, and each marker should have number inside it. How I can make it? I try #setTitle() method, but it place text in balloon. Update: for(int i = 0; i <…
igor_rb
  • 1,821
  • 1
  • 19
  • 34
6
votes
3 answers

OSMDroid: zooming to show the whole PathOverlay

I need to populate my overlay with many (~400) points, add them to PathOverlay and then set the zoom level so that the user could see the whole path on the screen. One solution would be to keep max longitude, min longitude, min longitude, min…
syntagma
  • 23,346
  • 16
  • 78
  • 134
6
votes
2 answers

get the latitude and longitude of a clicked location on the map in osmdroid

I've managed to write an android app using it to trace user location and show it on the map using a marker. Here is the relevant code: public class MainActivity extends Activity implements LocationListener { public MapView mapView; private…
Elnaz
  • 476
  • 1
  • 5
  • 7
6
votes
1 answer

Displaying shape file or and OSM file in android as a map

I want to implement a Indoor Navigation application in android. My first task is to display the map in android. I have created the indoor map in both shape file and OSM file format. • I created the shape file using QGIS. • I created the OSM file…
direndd
  • 642
  • 2
  • 16
  • 47
6
votes
1 answer

How to get the Map Extent change event in OSMdroid?

I am using the Osmdroid library in my custom Android App. At every extent change (& when the map is zoomed in) I want to query the sqlite database and get records that lie within that extent. For this I need something similar to a Map Extent change…
Devdatta Tengshe
  • 4,015
  • 10
  • 46
  • 59
6
votes
2 answers

Osmdroid map rotation

I am doing osmdroid map project. I am using custom tiles for map. Can anyone tell me how to rotate the custom tiles map?
Palanichamy
  • 141
  • 2
  • 9
6
votes
2 answers

How to draw a Polygon on MapView, fill it, and put a onTouch Event on it

Is it possible to set an EventListener in a drawn Polygon in a osmdroid MapView Overlay ? I would like to print on a Overlay and after touching it I would like to change its color or handle data behind a Polygon. For Example: Poly1: ID = 1337,…
Matthias H
  • 1,300
  • 13
  • 19
6
votes
2 answers

osmdroid, Maps API v2, and fragments

Ok. You'd think this would be relatively simple, but nope. I am using Open street maps on my website, as the data is free to use, edit, and update - my project follows this mantra, and alongside googles API usage restrictions/saving data…
6
votes
2 answers

How to use MOBAC created OSMDroid SQLite tile source file offline?

I've been pulling my hair out trying to get my own offline Mobile Atlas Creator OSMDroid SQLite map working with OSMDroid 3.0.8 without luck. It's been a long 3 days. I'll try to explain with clips from my application. I've been extending…
dubmojo
  • 6,660
  • 8
  • 41
  • 68
6
votes
1 answer

Multiple tile layers on osmdroid

Currently I am loading one tile data-layer over an OSMdroid basemap with final MapTileProviderBasic tileProvider = new MapTileProviderBasic(getApplicationContext()); final ITileSource tileSource = new XYTileSource("MyCustomTiles", null, 1,…
birgit
  • 1,121
  • 2
  • 21
  • 39
1 2
3
81 82