tillnagel / unfolding

A library to create interactive maps and geovisualizations in Processing and Java
http://unfoldingmaps.org
Other
477 stars 245 forks source link

prevent panning off edge of map. #173

Open wcneill opened 4 years ago

wcneill commented 4 years ago

When displaying a map without panning restrictions, mouse dragging the map too far results in the map being taken off screen, replaced with a garbled and blurred version of the map. Setting panning restrictions solves this problem at minimum zoom level, but interferes with proper panning at higher zoom.