I am giving some thought to a mapping problem that has been put to me.
I have a graphic designer produced map that was based on a Google satellite view but now has many additional graphic elements such that nothing now remains of the original image. The area is about 5km east/west and about 3km north/south and fortunately aligned to true north. The Lat/Long coordinates of the map corners are known. The map is quite a detailed .jpg with the need to zoom-in on areas to view the full detail. The graphic is consequently quite large but I tested it with ZoomImageView and the user experience is very good.
I would like to depict the user's current Lat/Long position from FusedLocationProvider on the map but there seem to be several ways of attacking the problem. Is there a ready-cooked map-tile view that might suit the purpose or am I obliged to design and animate an overlay position cursor myself?
as long as the coordinates of the map corners are known, there are many references to the formulas
used to converted those coordinates to given x,y positions on the map. from there you can place a
marker of your choice/design. that's how it's done. just google this "gps coordinates to pixels".
I can not find the offline map app for B4J, therefore I make a little code for it. The code is not perfect but it is at least the beginning. Thank you "Erel", "oparra" and "emexes" for your advices here...
Fascinated with ScaleImageView I have to made this little code (w_map.zip). ScaleImageView library was created by "agraham" and link is here: https://www.b4x.com/android/forum/threads/scaleimageview-pan-and-zoom-large-images.102190/ The code is not perfect but you can see how to use...