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...
I have a simple application which polls database for data every minute. When new data is fetched, I am updating the graph using ajax. However, whenever I update the graph (re-plot it with new values added to plot data) the current state of zoom is lo...
I have an <img> that is zoomed upon mousewheel scrolling, by adjusting transform: scale(). I want the zooming to be like in Google Maps, where you zoom to where the mouse cursor is, not to the center of the image. I'd like to not use canvas...
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((...
I am trying to disable the zooming using the mouse wheel on an OpenLayers Map.  Zooming should only be allowed while the Shift key is hold. According to [1] this can easily be accomplished with  var map = new ol.Map({     layers: [         new ol.lay...
I am trying to zoom a canvas image. Here is the function that i'm using.  <script language="javascript"> $('#zoomin').click(function(){     var canvasWidth=canvas.width;     var canvasHeight=canvas.height;     canvas.width=c...
I have made a simple zoom in and out function with button as well as mousewheel function. The main concept is to limit the maximum zoom level and minimum zoom level.  I have successfully made it in two ways  BIN 1 BIN 2  But i tried to make this in a...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.