Android Question how to add navigiation marks on jpg or png ?

zohar

Member
Licensed User
Longtime User
Hi

I'm trying to create a littlle app which can show my location on regular image file .
i have a paint of a map of a city and i want to be able to navigate on it instead with google maps .
how should i convert it to become a map ?

Thanks ,
Zohar
 

klaus

Expert
Licensed User
Longtime User
You also need at least two reference points on the map to scale it.
The easiest would be having the coordinates of the top/left and bottom/right corners of the map allowing you to
calculate the coordinates for each pixel position.
If the two points are somewhere inside the map it's possible too, but a bit more complicated.
 
Upvote 0

zohar

Member
Licensed User
Longtime User
wow , thanks for the very quick response .
so basicly what i need is to get the real cordinate from real map , put it top/left and bottom/right corners of my image .
and then when i get a location from the gps i will chnage the position relative to the point on transparent panel .
the conversion from coordinates to pixel is done automaticly or i need to calculate it ?

Thanks again,
great community

Zohar
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
You need to do the calculation cause YOU are the one who know (or should know) which area in GPS-Data is wrapped in this image.
 
Upvote 0
Top