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
5
votes
0 answers

Not displaying tiles on Android offline maps app using osmdroid with MBTiles file

I need to develop an Android app that needs to display maps but has to work offline all of the time, also the maps correspond to a small city, after browsing a bit I stumbled upon osmdroid, and this along with the usage of a small .mbtiles file…
maxandonuts
  • 595
  • 7
  • 19
5
votes
1 answer

Osmdroid and Pinch

I'm developing an app using osmdroid (3.0.8). When I zoom using two fingers in and out, the zoom starts from the center of the map, not from the middle of the two fingers (using MapView.setMultiTouchControls(true);). I've tried to implement the…
Massimo Variolo
  • 4,669
  • 6
  • 38
  • 64
5
votes
3 answers

OsmDroid and MapQuest: How can I use JPEG tiles?

I am new to OSM and OSMdroid. I was following this pretty good tutorial to show offline maps. So basically what I have done is: Created a tile package in zip format with Mobile Atlas Creator Used MapQuest source, JPEG format Put the zip into the…
raver99
  • 99
  • 1
  • 4
5
votes
1 answer

Buttons over Mapview

I am creating an OSMdroid mapview in my MapActivity.java and I want to add buttons & pop-ups - I only know how this is done in .xml but since this MapView is not using any .xml I am puzzled how I can place (image)buttons within my java…
birgit
  • 1,121
  • 2
  • 21
  • 39
5
votes
4 answers

Is there an alternative to OSMDROID?

When using multitouch for zooming, osmdroid doesn't behave correctly. Also I've found some source code inside the jar file that uses a different license and therefore I am not sure I can use it.
Héctor Júdez Sapena
  • 5,329
  • 3
  • 23
  • 31
5
votes
2 answers

Osmdroid. onItemSingleTapUp not works for custom Drawable

I have created custom drawable marker which uses canvas to draw bounds. Everything works great excepts one thing: onItemSingleTapUp not called when any marker on the screen taped. Here is overlay creation code: ItemizedIconOverlay
ydanila
  • 435
  • 1
  • 5
  • 11
4
votes
2 answers

How can download map in osmdroid?

All I have used osmdroid and i want to download map zip files from android app and than create offline map. Any one have more knowledge about osmdroid and offline map and navigation.
Girish Bhutiya
  • 3,111
  • 5
  • 31
  • 50
4
votes
2 answers

Osmdroid - change local map folder

I am using offline version of osmdroid, maps are placed in sdcard/osmdroid. Do you know, how to change the file path? I have been searching through their code for handling ZIP files but I haven't found any solution. Anyone faced this issue…
Waypoint
  • 17,283
  • 39
  • 116
  • 170
4
votes
2 answers

Why MapView onTouchListener is only fired once?

Possible Duplicate: OnTouch in MapView only fires the first time I want to detect every touch made by the user to the map and hence I have registered a listener for an instance of MapView. However, this listener only get called once, after that…
fulupr
  • 129
  • 2
  • 11
4
votes
2 answers

How to change OSM map custom theme?

I am using an osm map, I want to change the map style How to change the theme colors and styles of the android maps in the open street map- I would like to totally simplify a map for a particular purpose and remove colors of particular…
Bolt UIX
  • 5,988
  • 6
  • 31
  • 58
4
votes
1 answer

Is there a way to draw dotted line using osmdroid polyline on osm map?

I'm currently using polyline to draw a gpx track on OSM map. I'm wondering if there's a way to draw dotted lines instead of solid lines using osmdroid ? Here is my code : Double firstLat, lastLat, firstLong, lastLong; firstLat =…
Flint12
  • 71
  • 10
4
votes
0 answers

ItemizedOverlayWithFocus shows another overlay when focused osmdroid

I have a problem with ItemizedOverlayWithFocus, when trying the a osmdorid example it works just fine. I tried to change Icons of markers then a problem occurred. When tapping on an item it shows another overlay with description instead of showing…
4
votes
4 answers

How to remove Markers from Osmdroid Map

I'm creating an Android Application where i need to set markers on the map. And since my App requires Offline function i need to use Osmdroid to solve this problem. Now my issue is the markers on the map, which i can easily add them by using Markers…
Kristi Leka
  • 41
  • 1
  • 6
4
votes
0 answers

Drag polyline along with marker in openstreetmap?

I'm currently developing an android application that would allow users to draw Polylines with Markers or point in the polyline when user long press on points how to dragline with points move also line would be move on the map. how do I achieve this…
4
votes
1 answer

Gps location is null

I am trying to make an app that gave me the position in a TextView but the result if I enable Fine location is null: public class Gpslocation extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { …
Jbell
  • 313
  • 2
  • 7