B4A Library OSMDroid - MapView for B4A

gravel

Member
Licensed User
There was some discussion about Custom Markers being displayed at the wrong size, in this thread and here. https://www.b4x.com/android/forum/threads/mapview-overlay-marker-image-too-large.30629/

I had this difficulty, and Martin's solution https://www.b4x.com/android/forum/threads/osmdroid-mapview-for-b4a.16309/page-3#post-115572
didn't fix it.

I see an OSMDroid issue https://code.google.com/archive/p/osmdroid/issues/331
which seems to accurately describe the problem, and was apparently resolved by revision r1099 of OSMDroid 3.0.8.

I've tried OSMDroid 4.1 and Custom Markers are correctly sized.

Is OSMDroid MapView 3.0.8 from a build prior to r1099?
 

warwound

Expert
Licensed User
Is OSMDroid MapView 3.0.8 from a build prior to r1099?
Looking at the version 3.0.8 source code i see no revision number.
Each class file has a 'Created by plusminus on ????' comment, and the date and time of the comments vary on each class file.
The dates and time all seem to be from 2008 which is long before issue 331 was corrected.

So i'd assume that the b4a verison 3.0.8 library does not contain the fix.
 

androidvh

Member
Licensed User
Dear Martin,

I use your libary in version 4.1.
Since last week no tiles are loaded.
You can check it if you rename the osm folder.

Any idea?

Kind regards Volker
 

MetalOS

Member
Licensed User
Hello,

I'm trying to use your OSMdroid library and I'm having a problem. When I test your SimpleMap example all works wonderfully on B4A 8.0. But if I test your code in my application I only have a frame in place of the OSM tiles. If I modify in my application the package name by your "uk.co.martinpearman.b4a.mapviewtutorial" the tiles will show up well and all will work. Can you tell me or declare the package name of my application to display the OSM tiles in my application. Thank you in advance and sorry for my english because I use Google Translate. Cordially.

Julien
 

corwin42

Expert
Licensed User
Since Martin seems to have disabled conversations I ask him here publicly:

Hello Martin,

I'm currently working on a project which will later run on a device without any Google Services. For this project I need a map and I'm considering using OSMDroid for this.

Your latest OSMDroid wrapper targets OSMDroid 4.1. The latest version of OSMDroid is 6.0.3 with many changes. From what I have seen you don't work anymore on the OSMDroid wrapper so I'm thinking about to create a new wrapper for OSMDroid. Since I even need routing capabilities which can be done with OSMBonuspack I'm thinking about to wrap this, too.

Is the source of your OSMDroid wrapper publicly available somewhere or are you willing to share it? Then I don't need to start completely from the beginning, even if many stuff has changed in OSMDroid.

Thanks and best regards,
Markus
 

ThePuiu

Active Member
Licensed User
I tested the examples provided at the beginning of the thread and it works perfectly! In my application, in MainFrame when I press a button, I want to see the map. I created a new module where I copied your code. All I can see is a background with a grid on it. No map ... Can you tell me what to do?
Thank you!
 

DonManfred

Expert
Licensed User
You should start a new Thread in the questionsforum for any question you have.
Make sure to upload a sample project which shows the issue.

the example is working; yours not. Check your code what you have done wrong i would suggest.
 

maurizio barbera

Member
Licensed User
Since Martin seems to have disabled conversations I ask him here publicly:

Hello Martin,

I'm currently working on a project which will later run on a device without any Google Services. For this project I need a map and I'm considering using OSMDroid for this.

Your latest OSMDroid wrapper targets OSMDroid 4.1. The latest version of OSMDroid is 6.0.3 with many changes. From what I have seen you don't work anymore on the OSMDroid wrapper so I'm thinking about to create a new wrapper for OSMDroid. Since I even need routing capabilities which can be done with OSMBonuspack I'm thinking about to wrap this, too.

Is the source of your OSMDroid wrapper publicly available somewhere or are you willing to share it? Then I don't need to start completely from the beginning, even if many stuff has changed in OSMDroid.

Thanks and best regards,
Markus

hi, where can I download the 6.0.3 library? thank you
 
Top