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

org.osmdroid.views.MapView failed to instantiate

i really need your wonderful help. The OSMDROID map doesn't load, i keep looking the code line by line and dont get it............... this code works on the phone ( shows the map perfectly )........ this code works on the emulator ( doesnt show the…
funkeeiads
  • 137
  • 4
  • 12
0
votes
2 answers

How to add balloons in OpenStreetMap?

How do I add balloons like those on Google Maps (such as the one shown here) into OpenStreetMap? This is my OpenStreetMap code below: import org.osmdroid.DefaultResourceProxyImpl; import org.osmdroid.ResourceProxy; import…
Hayya ANAM
  • 575
  • 2
  • 14
  • 38
0
votes
1 answer

How to control the size of the downloaded map area for each zoom level in OSMDroid?

I'm using offline maps downloaded from OpenStreetMaps on my Android application. When I move the map some tiles do not appears. I whould like to choose the area of n kilometers by m kilometers or something else.
Natanael
  • 2,290
  • 6
  • 23
  • 35
0
votes
1 answer

OSMDroid MapView. Successfully added custom markers, but defaults also showing too?

My Code is as follows. Essentially, I am trying to replace each marker with my custom marker, namely my drawable beer_full. This overridden draw function in my custom overlay is doing the job perfectly, BUT it leaves the default icon there too. So…
Thomas Clowes
  • 4,529
  • 8
  • 41
  • 73
0
votes
0 answers

Add Legenda to OSMdroid mapview with Pop-Up

I have a map with custom tiles and I need to add an optional legenda to the site explaining the color code of the custom map. I have now tried to achieve what I want by triggering a toast showing an image via a menu. But now I learnt that toast is…
birgit
  • 1,121
  • 2
  • 21
  • 39
0
votes
1 answer

OSMDroid how to make external provider work together with local?

So I've finally gotten osmdroid working with a local directory but I'd like to load tiles from Mapnik when they are missing locally. I'm not sure what I'm missing. My implementation is as follows: private MapView mapView = null; @Override public…
Warpzit
  • 27,966
  • 19
  • 103
  • 155
0
votes
1 answer

OSMdroid default startlocation when no GPS

I am making an App that makes use of and OSMdroid map. I want the center of the map to be where the location of the user is. This works so far when GPS is on, but I also want to assure a default center in case the GPS does not work/is off. I tested…
birgit
  • 1,121
  • 2
  • 21
  • 39
0
votes
0 answers

Centre map goes to wrong coordinates

I am making an android app which uses an OpenStreetMap. I have my own tile server which serves the street map. When I tell the app to centre on a specifc area on the map by passing the coordinates as a GeoPoint, it centres somewhere around Africa…
sam
  • 2,469
  • 8
  • 37
  • 57
0
votes
1 answer

converting screen coordinates to geopoint

I'm trying to port an app from googlemap 2.2 to osmdroid 3.0.8. I'm stuck with the following code in my MapView: Projection proj = getProjection(); GeoPoint topLeft = proj.fromPixels(0, 0); GeoPoint bottomRight = proj.fromPixels(getWidth()-1,…
Fabien R
  • 685
  • 1
  • 8
  • 24
0
votes
4 answers

Android HelloGoogleMaps to OSMdroid (Open Street Maps)

I am trying to reproduce a working HelloGoogleMaps app in Open Street Maps - but I have trouble including the itemized overlay in OSMdroid. I have looked at several resources but I cannot figure out how to fix the error on OsmItemizedOverlay - I…
birgit
  • 1,121
  • 2
  • 21
  • 39
0
votes
1 answer

Is it possible to use MapCSS with OSMDroid?

I'm making an android app that uses OSMDroid for it's map engine and I wanted to make a custom theme for it and read up on MapCSS instead of creating tiles. I've been doing research to find out how to incorporate the two and haven't had much luck..…
n388mm
  • 81
  • 5
0
votes
1 answer

Map rotation on smartphone

We are developing an indoor application on iOS and Android using MapKit and Cloudmade for the mapping. The mapping we have should be able to work both online and offline. My mapping expect is having troubles on how to make the map rotate to face the…
0
votes
1 answer

Porting Osmdroid to Monodroid (resolve error and intelli-sense)

I am porting the jar lib from Osmdroid to Mono for Android (C#). At the moment everything seems to work. I ported the library and included the Binding-Project to my Testproject in order to test the correct porting. I am able to access the osm…
faiko
  • 111
  • 6
0
votes
1 answer

Packaging Maps within an Android App?

I've researched a bit into this topic and have discovered that the last time this was asked (specifically for Google Maps), the answer was "it's illegal". Seeing as Google Maps now provides you with the ability to do Offline Caching yourself, why…
snotyak
  • 3,709
  • 6
  • 35
  • 52
0
votes
1 answer

Cancel the effect of inertia in the movement of the maps in OSMDROID

I need to cancel the effect of inertia in the movement of the maps in OSMDROID. I tried to modify the code but I don't get anything. Any idea how?
JMPergar
  • 1,906
  • 1
  • 19
  • 21