Take the 2-minute tour ×
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

closed as off-topic by Paul, iant Jun 16 at 13:08

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions about software development are off-topic here unless they relate directly to Geographical Information Systems, but they can be asked on Stack Overflow." – Paul, iant
If this question can be reworded to fit the rules in the help center, please edit the 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. –  rahstame 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 –  rahstame 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

Browse other questions tagged or ask your own question.