d3.js canvas zoom and pan with bounds -


i've been pretty able set zooming , panning map in canvas following mike bostock's block here: http://bl.ocks.org/mbostock/c1c0426d50ca8a9f4c97

however, there way prevent user panning off screen? in block, can zoom out , drag map off screen. is there way make sure user sees map?


Comments