B4A Library OSMDroid - MapView for B4A

Discussion in 'Additional libraries, classes and official updates' started by warwound, Mar 26, 2012.

  1. gravel

    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?
     
  2. warwound

    warwound Expert Licensed User

    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.
     
    nemiroG1 and Roger Daley like this.
  3. gravel

    gravel Member Licensed User

    Thanks for that warwound. Good to find a reason for the problem, and your version 4.1 does just what I need ... tiny markers.
     
    Roger Daley and warwound like this.
  4. androidvh

    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
     
  5. MetalOS

    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
     
  6. corwin42

    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
     
    iz0ndg and Almora like this.
  7. warwound

    warwound Expert Licensed User

  8. Almora

    Almora Active Member Licensed User

    I am wondering too..
     
  9. ThePuiu

    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!
     
  10. DonManfred

    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.
     
  11. maurizio barbera

    maurizio barbera Member Licensed User


    hi, where can I download the 6.0.3 library? thank you
     
  12. DonManfred

    DonManfred Expert Licensed User

    i did not see any release from @corwin42 ....
     
  13. maurizio barbera

    maurizio barbera Member Licensed User

    i read ...our latest OSMDroid wrapper targets OSMDroid 4.1. The latest version of OSMDroid is 6.0.3 with many changes...
     
  14. DonManfred

    DonManfred Expert Licensed User

    that may be. But the is NO released b4a library for this as of now!!! Due to this there is NO downloadlink available.
     
  15. maurizio barbera

    maurizio barbera Member Licensed User

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice