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
1 answer

connecting to PostGIS database

I am trying to create an app which will allow a user to view an OSM map hosted on my own tile server and also have the ability to edit it. I currently have a tile-server which delivers the map tiles (png images) to my android app which is displayed…
sam
  • 2,469
  • 8
  • 37
  • 57
6
votes
2 answers

Replacement for Android Mapview to use a WMS service

I am looking for a replacement for the Android MapView, because I need to add a WMS service within a map view and it works very poorly using the native view. I have tried using Osmdroid API for this, but still without success. This requires…
6
votes
1 answer

Determine user location on osm maps

I am working on an android application that determines user location in osm maps. I am being able to show user location on the map, but if the location change the whole map is reloaded, what’s wrong with that? Also how I can increase the accuracy of…
harhouf
  • 117
  • 3
  • 9
6
votes
1 answer

adding Overlay to a MapView in osmdroid

I am writing a simple android application using osmdroid that work online an offline untill now I am able to display the map (online and offline), and I want to add overlay (markers) on the map, I had search for simple example for using overlay in…
Abdalwhab Bakheet
  • 1,133
  • 2
  • 11
  • 17
5
votes
1 answer

Creating an offline map on Android

I'm new to Android app development and I have to create an Offline map Android application. I used Mobile Atlas Creator to get the map views osmdroid .zip format, and I don't know how to add it in my app. Can someone show me how to use Osmdroid in…
Adams
  • 105
  • 4
  • 10
5
votes
1 answer

Limit Scrolling on offline maps, in Android

I got these piece of codes or patches from osmdroid, and I decided to ask for your help guys because i don't have the enough knowledge to combine these codes to come up with on a solution on my problem, Scrolling limit on an offline map. I searched…
rahstame
  • 469
  • 1
  • 7
  • 21
5
votes
1 answer

osmdroid map not visible

I am using osmdroid for my mapping needs in Android. Until a few days ago, I could see the map and every thing was okay, but now every time my map activity starts, I get an empty map and the following trace: 08-22 07:47:01.113:…
omri
  • 169
  • 2
  • 12
5
votes
2 answers

How to use leaflet "openstreetmap" with flutter?

I need help to integrate leaflet maps in flutter. The project I'm working on requires showing custom markers, animations, routes and drawings on the map. But I can't find any documentation or tutorials explaining this in flutter.
Khalil LAABOUDI
  • 244
  • 1
  • 2
  • 12
5
votes
4 answers

Restricting the area the user can go to on Mapview

I am using a customised version of the mapview (OSMDroid version). I am using custom tiles within it and I only want the user to be able to view the area where I have my custom tiles. Is there a way to set the boundary lat longs so when they pan the…
Bex
  • 4,898
  • 11
  • 50
  • 87
5
votes
4 answers

Osmdroid maps not loading on my device

I have an Alcatel One Touch 7040, when i test my sample of osmdroid on it, the maps don't render. I have tested on other devices, the maps are rendering in them properly, only on this device they are not. I thought my device memory was low so I…
Ghanendra
  • 363
  • 6
  • 15
5
votes
2 answers

OSMBonusPack: Check whether my GeoPoint is inside Polygon or not

I am using osmdroid in android along with osmdroid bonus pack. I have drawn the a polygon. Now i want to check if the GeoPoint(Latitude, longitude) lies within the drawn polygon. How do i do it? Here I am using contains method, which only accepts…
Bhaumik Belani
  • 652
  • 1
  • 8
  • 19
5
votes
1 answer

open street maps (osmdroid) shows grey tiles not map in PC

I am using osmdroid to get open Street maps in my app. I had build my project with the needed jars (osmdroid) and added all needed permissions in the manifest. But when I try to debug my app in android emulator (adt eclipse) I am not able to see the…
Dany19
  • 551
  • 9
  • 26
5
votes
2 answers

OSMdroid bounds marker

////OSMdroid centered on the markers//// I add markers, I need to map the maximum increases or decreases in such a way that all markers were visible my code: public class mapcode extends Activity { globalvar appState; int stats=0; …
SKULL
  • 885
  • 8
  • 15
5
votes
0 answers

Route showing as a straight line and not along any road in OSM map

I have created an App using OSM map. The app is working fine, but the route from my current location to the destination is showing up as a straight line and not through any roads. The method I am using: public void addRouteOverlay(GeoPoint…
kittu88
  • 2,451
  • 5
  • 40
  • 80
5
votes
1 answer

OSMDroid: Adding a marker when user taps on map

I want to display a marker on map where user taps on map. Also this should not infect double tap for zooming and/or moving Mapview. I am using osmdroid-android-4.0.jar
Ali Behzadian Nejad
  • 8,804
  • 8
  • 56
  • 106