I've read similar issues on this but no one seems to have an answer. I have an iframe where I am loading an image. When I zoom the iframe becomes bigger or smaller. Is there a way to prevent the iframe from zoooming or a way to keep the ratio whe...
I'm trying to create some custom zoom functionality in d3.js. Currently the zoom is triggered on a single click and zooms in to focus only on the area that was clicked on.   Currently my code has a function zoom(d) that does exactly what it needs...
I would like to do the following trick in a browser:  Create three image files of different size (small, medium, large) from one picture.    First, display the small image in a browser. When a user zooms in the small image replace it with the medium...
I'm trying to adapt some code so I can plot data in a sunburst (using D3) chart with data coming from R as a dataframe.  I've got most of it working ok except the zooming part, when i click (almost) nothing happens.  On mouseOver I've got...
Drag and Drop Example  I am trying to rewrite part of this example above to use in my code, specifically this piece:  function centerNode(source) {         scale = zoomListener.scale();         x = -source.y0;         y = -source.x0;         x = x *...
So I've got an issue with a Google map using custom tiles, but I've managed to simplify it to the example below.  Taking the simple example Google provide with controls I've added the line   map.enableScrollWheelZoom();   This gives me th...
I want to zoom-in and zoom-out image on mouse scroll in HTML. There are multiple img tag without ID. So how can I do it using JavaScript or Ajax?...
I'm having trouble fixing panning in this example - it works fine unless you move the zoomed image and then zoom again(offset is set to default value and the view jumps to initial position - http://jsfiddle.net/p2Qzg/). Any ideas on how to fix th...
Recently, I decided to delve into the world of HTML5 and the canvas and I have run into an issue that I cannot figure out how to solve.  I am using the zoom technique that was mentioned in this question, as I need to be able to zoom into a specific p...
This works in all my test browsers:  <body onresize="handleResize()">      // Aint perfect, but works well enough! function handleResize() {     // Document.ready sets initialWidth = window.innerWidth;     var zoomAmount = Math.round((...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.