I'm using D3.js to plot a collapsible tree diagram like in the example. It's working mostly well, but the diagram might change dramatically in size when it enters its normal function (ie instead of the few nodes I have now, I'll have a lo...
I have implemented a simple D3.js line chart that can be zoomed and panned. It is based on Stephen Bannasch's excellent example here.  The domain of my data is [0, n] in the x dimension.  How can I limit zooming and panning to this domain using t...
Been struggling all day with setting a pan to in google maps from a text link. It looks like the id of the map itself isnt being passed through to the function but I have tried a number of things with no joy.  <script type="text/javascript"...
I'm working on a little script that makes an object (div or img) moveable and zoomable within a given frame.  However I came across a few problems I'm not really sure of, because I'm a javascript beginner - so explanation of why those pro...
In a Cordova/Android app that I am creating I have to implement my own zooming & panning (no libraries allowed nor suitable) of an inline SVG image.  My effort thus far is shown below.    var _hold = {zoom:1};  function preparePanZoom() {    var...
Im trying to work out how to make an image that is way bigger than the browser window (2000x2800px) scale when initializing jquery.panzoom. I need the image to resize itself so it will fit within the height of the container.  Check out this jsFiddle:...
I am using the ariutta svg-pan-zoom library(https://github.com/ariutta/svg-pan-zoom). (Also using with jquery.layout.js panes and jquery-ui.js)  I would like to save the values such as pan and zoom values of an svg-pan-zoom svg and use those values i...
i just want to add a pan tool within the " iframe " , and i tried by this demo but I can't able to make a pan tool within the iframe. can anyone give any suggestions regarding this?    document.getElementById('activate-g2p').oncha...
I have a problem developing a web application for iPhone. When I visit a simple example like http://code.google.com/intl/sv-SE/apis/maps/documentation/javascript/examples/map-simple.html in an iPhone and do pinch zoom the map pans when I release the...
I have created a gist with my problem.   I've started from this example.  So my problem is that I need some zoom in and zoom out buttons in addition to mouse controls.  Mouse controls (zooming with wheel and pan by dragging) are implemented with...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.