Android Question ideas to create and show a building floor map

Discussion in 'Android Questions' started by peacemaker, Feb 18, 2019.

  1. peacemaker

    peacemaker Well-Known Member Licensed User

    HI, All

    Any ideas how to make a floor plan, map ? And later to show it with scaling\scrolling over the mobile screen.
     
  2. BillMeyer

    BillMeyer Well-Known Member Licensed User

  3. MarkusR

    MarkusR Well-Known Member Licensed User

    maybe try a demo if exists from here.
    https://www.punchsoftware.com/interior-design

    creating a real floor map is not easy, it needs much and exact measurements.
    you start by entire surface and then adding a room outline.
    on this outline u can add/move doors and windows. (mouse point & line intersect)
    i would make it with some classes. add room add wall add door add window.
    each object needs a sub for selecting it, moving selected, delete selected,add something, etc.
    each object can paint itself into canvas.
    each object have it properties and/or sub objects in a list.

    scrolling (translate) would be just add a x,y value to all x,y position temporary.
    scaling would be just multiply a value to all x,y values.
     
  4. peacemaker

    peacemaker Well-Known Member Licensed User

  5. MarkusR

    MarkusR Well-Known Member Licensed User

    but you can test this mentioned apps for look and feel and copy ideas.
    i would visualize it with vector graphics.
     
  6. peacemaker

    peacemaker Well-Known Member Licensed User

  7. MarkusR

    MarkusR Well-Known Member Licensed User

    i tested this indoor map last year but it was instable at my phone for any reason.
    i believe the background was a bitmap.
     
    peacemaker likes this.
  8. DonManfred

    DonManfred Expert Licensed User

    MarkusR likes this.
  9. peacemaker

    peacemaker Well-Known Member Licensed User

    Wow ! What functions did you test, excepting simple testdata map run ? As i can see - many functions.
    Did navigation work during move ?

    @DonManfred, thanks for this lib ! Did you test navigation itself ?
     
  10. MarkusR

    MarkusR Well-Known Member Licensed User

    i tested this attached IndoorMapEx.zip there with own warehouse area image.
     
    peacemaker likes this.
  11. peacemaker

    peacemaker Well-Known Member Licensed User

     
  12. MarkusR

    MarkusR Well-Known Member Licensed User

    i can't answer.
    i used it only in office and because it not run well at my device i not continued testing.
    but i wonder that the compass work with my phone.
     
    peacemaker likes this.
  13. peacemaker

    peacemaker Well-Known Member Licensed User

    TYPE_ORIENTATION is depricated. THis lib cannot be used for API level 20+ :(
     
    Last edited: Feb 18, 2019
  14. js486dog

    js486dog Member Licensed User

    Maybe you can use OSMDROID (MapView) - version 4. No version 3.
    THis lib can be used for API level 20+ .

    https://www.b4x.com/android/forum/threads/osmdroid-mapview-for-b4a-tutorial.16310/

    You can use raster and vector (polygons, lines, points) datas with OSMDROID (MapView) - and you can link these datas with external database and pictures.

    Here is the example of the offline map app:

    https://mobiledev-jans.blogspot.com/2017/11/mapsgo-android-offline-maps.html

    I think this map app is a little idea also for floor building map.


    If you need also coordinates (WGS) you should have (GPS) "TYPE_ORIENTATION" sensor. But you can use also Geomagnetic sensor.
    "TYPE_ORIENTATION" is better than Geomagnetic.
    But GPS in Building ? I do not know.
     
    peacemaker likes this.
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