Android Question ideas to create and show a building floor map

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.
 

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.
 

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.
 

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

Well-Known Member
Licensed User
i tested this indoor map
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 ?
 

MarkusR

Well-Known Member
Licensed User
i tested this attached IndoorMapEx.zip there with own warehouse area image.
 

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

Well-Known Member
Licensed User
TYPE_ORIENTATION is depricated. THis lib cannot be used for API level 20+ :(
 
Last edited:

js486dog

Active Member
Licensed User
TYPE_ORIENTATION is depricated. THis lib cannot be used for API level 20+ :(
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.
 
Top