Tell me more ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have an offline map of a city displaying on Android. Since my map is just small, when you scroll beyond the the boundaries of the map you see only a gray screen and you will probably be lost and could not be able to view the city map.

How can I limit the viewing of the map to the boundaries of the city map? What should I do for the user to only scroll on the map area, and not beyond it?

My resources are OSM Mapnik, osmdroid-android-3.0.1.jar library.

Thank you for your time.

share|improve this question
Is your question about programming an Android app in order to display a slippy-map on only a limited boundary? – Caleb Oct 12 '11 at 6:57
Yes sir, but I am not familiar with slippy-map. – lordzden Oct 12 '11 at 7:05
"Slippy map" is just a web developers term for a draggable map widget. Your question might be more on-topic on StackOverflow as the answer is really a matter of programming and the answer will be code related to the map library you are using rather than strictly GIS. – Caleb Oct 12 '11 at 7:07
Thank you for your time sir, I try to check StackOverFlow – lordzden Oct 12 '11 at 7:09
No problem. Please don't cross-post. If you decide you want to ask on SO instead you can flag the post here and a moderator will migrate it to the other site. – Caleb Oct 12 '11 at 7:11

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.