I'm creating a web map of a university campus. I have the map functioning, but I don't want to be able to pan off of the basemap, into whitespace. Do you know of a function that will auto-pan the extent back to the basemap?
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.
|
This sample shows one method to monitor the extent and keep the user from panning beyond the established limits. |
|||
|
I don't think there's a function to do it for you; you'll have to handle the |
|||
|