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
18
votes
2 answers

How can I implement an offline geocoder for a single city using OSM data in android?

I am trying to develop an offline android map that makes use of OSM map tiles of a particular zoom level, For this purpose I used an open source library : Osmdroid Now, I am looking into the possibility of creating an offline geocoding/ reverse…
Pratik Bhat
  • 7,166
  • 2
  • 35
  • 57
17
votes
5 answers

How to use OSM map in an android application.? Is there any tutorial to learn about using OSM in android.?

I am searching for a tutorial/manual or steps to include Open street map into my android application. All I found is either a big project with lot more functionality on it, otherwise so many questions ended without proper conclusion about…
rubin
  • 271
  • 2
  • 6
  • 14
13
votes
4 answers

Pinch to zoom with Osmdroid

I've written a mapping application which has two activities, one activity displays a Google Maps view, the other displays the equivalent view using osmdroid 3.0.5 jar. Until now I've been testing on emulators only and the functionality is completely…
NickT
  • 23,844
  • 11
  • 78
  • 121
13
votes
1 answer

User-Agent for osmdroid

I tried to put the user agent (cf https://github.com/osmdroid/osmdroid/wiki/Important-notes-on-using-osmdroid-in-your-app), but when I put the line OpenStreetMapTileProviderConstants.setUserAgentValue(BuildConfig.APPLICATION_ID); Android studio is…
Jbell
  • 313
  • 2
  • 7
13
votes
2 answers

How to cache/download google map v2 tile programmatically?

How to cache/download google map v2 tile programmatically?, is it possible? Bcos according to this prntscr.com/3cyiqf its not possible but as I have seen this link TileProvider using local tiles I thought that if Android provides TileProvider…
12
votes
3 answers

Open Street Map working offline android

I am a newbie to Open Street Map. I made some research and found that we can download and store the map into a folder. But i didn't find any tutorial or sample that provides offline Open Street Map. Can someone provide a step by step tutorial, a…
Dimitri
  • 1,924
  • 9
  • 43
  • 65
12
votes
2 answers

OSMDroid PathOverlay

Today I'm looking forward of how to use PathOverlay in OSMDroid. I can't find any explanation of how it works. I need to create a suggested route (not like navigation system), just a stroke begining at a point, do a "circuit" and then return to the…
silentw
  • 4,835
  • 4
  • 25
  • 45
11
votes
3 answers

Adding Overlay to OSMDROID

I have been struggling with this long time. I am trying to add Overlay on my map. I am using the open source OSMdroid. but all I get by the example is a straight red line from one corner to another. My target is to add some icon where my geoPoint…
rayman
  • 20,786
  • 45
  • 148
  • 246
11
votes
1 answer

osmdroid overlay to center on current location

I'm using osmdroid and I have added a MyLocationNewOverlay to my map to show my current location. THis looks fine. What I want is a button that will center the map on to my current location, similar to Google Maps. Is there a way to do this built…
Stealth Rabbi
  • 10,156
  • 22
  • 100
  • 176
11
votes
3 answers

osmdroid - higher zoom level?

I'm trying to implement a MapView using the osmdroid library. However at the moment the furthest I seem to be able to zoom in isn't sufficient enough for my purposes. @Override protected void onCreate(Bundle savedInstanceState) { …
jshbrntt
  • 5,134
  • 6
  • 31
  • 60
10
votes
2 answers

Downloading specific maptiles to cache in OSMDroid

I am currently working on a school project and I am trying to learn the techniques on downloading OSM map tiles into the phone's local memory/cache, so that users are able to view the maps when offline. This is to be done by giving a specific…
lyk
  • 1,578
  • 5
  • 25
  • 49
9
votes
2 answers

OSMDroid Loading Custom Offline tiles From Assets Folder

I was wondering whether it was possible to do such a thing. I know that one would need to modify some of the existing code to pull this off but I was wondering if anyone had any direction on where to look and how to do this. I am placing a few…
Andrew Grosner
  • 2,337
  • 2
  • 18
  • 14
8
votes
2 answers

Custom information bubble on tap for overlay items using osmdroid

I'm using osmdroid on my new Android project (since I want to be able to use offline maps) but I encounter many difficulties to customize the look 'n feel of the information bubble assigned to an overlay item. Right now, I'm using an…
Vivi
  • 972
  • 1
  • 14
  • 30
8
votes
2 answers

How can I implement offline maps using osmdroid by saving map tiles images into sqlite database?

I have a project that has a requirement of displaying map data in offline mode also. I have used OpenStreet maps for the same. I have saved map images(tiles) and each tile is referenced by a tilekey in database. I want to access these map tiles from…
Ayush Verma
  • 264
  • 1
  • 4
  • 9
8
votes
1 answer

Leaflet - Draw road path in real-time based on two marker

Here's the sample of application that draw road path based on two markers Sorry I cannot search the tutorial to create this one because I cannot determine the right keyword. All i want is to place two markers, then the road path will be created…
Mellorine
  • 265
  • 1
  • 5
  • 13
1
2 3
81 82