¡@

Home 

javascript Programming Glossary: minx

Kineticjs dragBoundFunc for a rect in a rect

http://stackoverflow.com/questions/15854001/kineticjs-dragboundfunc-for-a-rect-in-a-rect

has less calc's to do var height orangeRect.getHeight var minX white.getX var maxX white.getX white.getWidth orangeRect.getWidth.. dragBoundFunc function pos var X pos.x var Y pos.y if X minX X minX if X maxX X maxX if Y minY Y minY if Y maxY Y maxY return.. function pos var X pos.x var Y pos.y if X minX X minX if X maxX X maxX if Y minY Y minY if Y maxY Y maxY return x..

Google Maps v3 - limit viewable area and zoom level

http://stackoverflow.com/questions/3818016/google-maps-v3-limit-viewable-area-and-zoom-level

.lng maxY strictBounds.getNorthEast .lat minX strictBounds.getSouthWest .lng minY strictBounds.getSouthWest.. .lng minY strictBounds.getSouthWest .lat if x minX x minX if x maxX x maxX if y minY y minY if y maxY y maxY map.setCenter.. .lng minY strictBounds.getSouthWest .lat if x minX x minX if x maxX x maxX if y minY y minY if y maxY y maxY map.setCenter..