FAQ Database Discussion Community


D3 zoom is not properly reseting zoom state and translated location

javascript,jquery,d3.js,zoom,scale
Well I already got it working, but somehow when tested now it does not work anymore. So in my project I have a map that is zoom- and dragable. When zoomed in or dragged you can always click a Reset button to reset the whole presention. That works great. So...

Crop image with settable center and scale in Python PIL

python,image,zoom,python-imaging-library,crop
I would like to crop an image using PIL, although it could be some other module. I need the method to crop with a scale factor, ie 1.5 meaning that the output would be 1.5x zoomed in. Additionally, I would need to set the center where it zooms. This means...

PHP Image Zoom - Exponential scale

php,image,math,zoom,exponential
Iam trying to calculate a zoom Effect beetween 12 Images. Every Image is 100% larger then the one before. Its geting near to perfect, but there is only a issue at the transition beetween the images. It isn't fluid zoom beetween each image. Please see the video: http://youtu.be/dUBbDjewpO0 I think...

Zoom softly into the center of a D3 map

javascript,d3.js,zoom
I have a create an interactive map. This map can be zoomed via buttons. These buttons already work but I don't like the current style. It does not feel UX-friendly when by clicking the button the map is shaking a bit. I would like to zoom into the center of...

Chart - Zoom In to show more precise data

c#,winforms,graph,charts,zoom
So I have a chart at the moment that carries quite a lot of data. This can be seen in the image below: Basically I want the user to be able to zoom in and see further into the data. As you can tell it is currently carrying a large...

Crop Bitmap using RectF parameters on Android

android,image,bitmap,zoom,crop
Using MikeOrtiz's awesome ImageView implementation with touch and zoom events, I wanted to crop a picture taken with the camera to match the zoom. Using his method... // Return a Rect representing the zoomed image. RectF getZoomedRect(); ...I tried cropping the resulting picture bitmap to the zoom size like so:...

iOS: How to know zoom level of GMSMapView

ios,objective-c,google-maps,zoom,gmsmapview
Hello I want to get current zoom level of Google Map view, like in a condition to check. For example, if(mapView.zoom==18.0) { //code goes here.. } How to get that ?...

D3 Bounded Panning

javascript,d3.js,zoom,panning
I've been at this for a few days now and I can't get this chart to obey panning bounds. Initially, the data could be pulled off the page both negatively and positively, but I've been able to stop the negative by following this blog post. I'll paste what I believe...

WPF full-screen app debug in “portrait” mode

wpf,zoom,landscape-portrait
I have to make a "portrait" 1080x1920 full-screen app with some fixed-size images on it, using WPF. But I have standard "landscape" 1920x1080 screen which I work on, so i can't run my app to test it. I also can't turn my screen 90 degrees (it doesn't rotate). How it...

Xcode UIScrollView zoom same as MKMapView zoom (no effect on subview)

ios,objective-c,uiscrollview,mkmapview,zoom
I want to add zoom effect on my UIScrollView . That i have achieved it with UIScrollView delegate methods. (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView. Now i want to add the effect that MKMapView is having in it, that if we zoom-in or zoom-out the MKMapView place marker of the map remains at...

visual studio 2013 reset text zoom for all files

visual-studio-2013,zoom
I just got prescription glasses and I have to zoom out each document independently. Is there way to reset text zoom to whole project?

How to Zoom a Text View in Scroll View?

java,android,textview,scrollview,zoom
I have seen a lots of code here which is helpful to zoom your textview but none of them work with my text because it is within scrollview. How can I get rid of this problem? import android.app.Activity; import android.os.Bundle; import android.MotionEvent; import android.view.View; import android.view.View.OnTouchListener; import android.widget.TextView; public class...

Not able Zoom on D3 Group Bar Chart

javascript,d3.js,zoom,bar-chart
I have created a group bar chart, & try to apply zoom, but zoom is only happened for the first group & not for the complete group bar chart. Any help will be really appreciated. Thanks in advance. you can find working fiddle here: http://jsfiddle.net/fiddlefollower/qkHK6/893/ code details: var x0 =...

How to Draw on Zoomable Image in C# windows Forms

c#,winforms,graphics,zoom,line
so am implementing a project that can read image pan it, zoom it and do other stuff.. everything was going well until i tried implementing a draw with right mouse button. the problem is when i draw a line, the line that appears on the image does not correspond to...

Dynamic zoom in Google Maps API v2 Android

android,google-maps,zoom
In Google Maps API v2, the method animateCamera is used to define the zoom level for viewing. For example, googleMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(lat1, lng1), 12)); Here, the zoom level is fixed to 12. How do I make sure that the zoom value fixed here, will allow the user to view source and...

stop d3 circle pack labels from overlapping

javascript,d3.js,label,zoom,circle-pack
Stuck on overlapping labels. To illustrate: JSFIDDLE Click on the text label "Group A". After the zoom transition, the Group A label remains causing overlap with the small circle's label. Click elsewhere to zoom out. Click on "Group A" again. This time the label does not remain, so there is...

D3 forced layout zoom and pan not working

d3.js,zoom,force-layout
I just got started with D3's forced layout and implemented a radial graph implementation by referring : http://flowingdata.com/2012/08/02/how-to-make-an-interactive-network-visualization/ The problem I am facing is that the zooming is not working. Here's the code I referred: http://jsfiddle.net/blt909/aVhd8/20/ for zoom functionality And here's my code: var w = $("#network-plot").width(), h = 800,...

enlarge Excel dialog box for screen capture

excel,zoom,screenshot
I have to make a high resolution screen capture of part of an Excel session. I can zoom in on the contents of the spreadsheet, but the Sort dialog box I want to capture as well doesn't change size, so its pixel resolution doesn't increase. Working on Windows 7, Excel...

How does one reset the coordinates for panzoom.js?

html5,video,zoom,pan
I'm working on an HTML/css/js program to drag a video to position it and zoom it with the mouse wheel. The program zooms fine in browser screen. But, when I change to full screen, the video creeps up from the cursor when zooming in. How does one reset the coordinates...

Resize a HTML 5 canvas and its content in pure Javascript

javascript,html5,canvas,zoom
I would like to implement a "zoom" function in my Web App to resize a canvas and its content proportionally (I don't care about dirty quality). Here's my code. It resets the canvas each time we want to zoom in order to get an Image object (for using drawImage method),...

Is there a way to detect zoom in Matplotlib plots and set minor tick format according to zoom level?

python,matplotlib,zoom,axis-labels
I want to plot a large data range but have ability to zoom in and gain resolution. I need to use custom major and minor tick formatting therefore I lose the ability to have them set dynamically with the zoom level. Is there a practical solution to this problem?

Why does the OpenLayers Bing Layer disappear at low/high zoom levels?

zoom,openlayers,bing-maps
I have noticed that the Bing layer from OpenLayers disappears at low (0) and high (20) zoom levels. How could I avoid it? Is it possible to force some limit on the zoom levels? var apiKey = "AqTGBsziZHIJYYxgivLBf0hVdrAk9mWO5cQcb8Yux8sW5M8c8opEC2lZqKR1ZZXf"; var map; map = new OpenLayers.Map('map', { allOverlays: false, autoUpdateSize: true, displayProjection:...

fabricjs - Zoom canvas in viewport (possible?)

javascript,html5,zoom,fabricjs
at the moment I try to implement a zoom-functionallity to a visual-editor based on the fabricjs-framework. I've looked around but got more and more confused as I recognized that the development of this feature/function was a long and rocky road for the community and developers. Because of that, many solutions...

Count Number of GMSCircles in View Google Maps SDK…or use MarkerManager Instead? Does this exist for iOS?

ios,google-maps,swift,zoom,google-maps-markers
I'm trying to count the number of GMSCircles in the users current view in iOS Swift. For example, when the user zooms in or out I want it to count the number of circles currently on the screen. I have something like this right now to append the all my...

Setting zoom level doesn't work on Google Map

javascript,html,dictionary,zoom,option
i'm learning web developing and i'm using Javascript to show Google Map. Here is my code: <!DOCTYPE html> <html> <head> <title>Google Map</title> <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script> <script type="text/javascript"> function loadData(callback) { var xobj = new XMLHttpRequest(); xobj.overrideMimeType("application/json"); xobj.onreadystatechange = function () { if (xobj.readyState == 4 && xobj.status == "200")...

How to zoom in when hover on image but make border stay in place?

css,hover,border,zoom,image-zoom
I'm quite new to CSS and HTML and I want to create an image that zooms in fast when you hover. But the box radius zooms in as well. I know I'm doing something wrong with my div classes but I can't figure out what exactly. So I mean I...

interactive graph in R

r,graph,zoom,shiny,interactive
I'd like to create interactive graphs in R where the user can zoom in/out of the graph, and if possible also to click on a vertex and get more information about it. In igraph, there is rglplot, which can zoom in and out, but makes the graph 3d - if...

Outlook AddIn Zoom.Percentage

c#,vba,outlook,zoom,outlook-addin
Im trying to translate this VBA code from an Outlook AddIn to C# Private Sub objInspector_Activate() Handles objInspector.Activate Dim wdDoc As Microsoft.Office.Interop.Word.Document = objInspector.WordEditor wdDoc.Windows(1).Panes(1).View.Zoom.Percentage = lngZoom End Sub But I can't get access to the Panes.View.Zoom.Percentage property The main idea is that when the user opens an email, he...

How can I implement a Zoom Panel with Java Swing libraries

java,swing,dictionary,scrollbar,zoom
I've implemented a JFrame with Java Swing libraries to visualize a map. I'd like to realize a zoom function within this frame. This is the code of my JFrame: package components; import java.awt.BorderLayout; import java.awt.Container; import javax.swing.JFrame; import javax.swing.JScrollPane; public class MyFrame extends JFrame { private static final long serialVersionUID...

android click image to zoom in (larger than screen) and move around, and click again to go back to default size

android,image,click,zoom
I've done my searches extensively for sure, but I haven't come across exactly what I'm looking for. As such, I haven't any code to show for what I want to do. I want to know if it's possible, first of all, and then get a lead on how to implement...

AS3 Constrain Object while Zooming/Panning with GestureEvent / MouseEvent

actionscript-3,flash,zoom,gesture,pan
What I want to do is to keep my MovieClip (which is bigger than the viewport) from having its borders visible. Just like many apps do, e.g. Clash of Clans. This way if you zoom in and zoom out or pan you will never see the stage under it. If...

CSS mobile version of web site is zoomed in A LITTLE BIT when loaded (only whatchable with mobile device)

css,mobile,zoom,viewport,pinchzoom
I have set up a mobile web site of http://www.berlin-ra-kanzlei.de/ ... but for an unknown reason it always seems to be zoomed in just A LITTLE BIT (maybe 1 - 3%?). There is always missing some milimetres of the right side and I can zoom out with a pinch. It...

Nav bar does not take up full width of page when zoomed in

css,google-chrome,navigation,width,zoom
My problem can be seen here if you zoom into 110% or more on your browser. (It happens with Chrome, I'm not sure about other browsers). Basically, on the right side you can see a grey sliver of a few pixels after the 'contact' button when you zoom in. I'm...

bi-linear interpolation zoom [duplicate]

matlab,zoom,interpolation
This question already has an answer here: Resize an image with bilinear interpolation without imresize 1 answer here, i want to zoom in my image(gray) using bi-linear interpolation method, but i not able generate final out put image properly,here is the matlab code : I = imread('house.png'); %image i...

In OL3, vector data layer not visible after map setCenter or zoom

zoom,layer
Migrating a map to use OL3. When I call map.getView().setCenter or map.getView().zoom on the map, the map behaves correctly, but my vector data layer is no longer visible. I have to do a MouseWheelZoom interaction on the map and then the data layer shows up. This is similar to the...

Textarea with font-size:30px still autozooms when activated on mobile

html,css,mobile,textarea,zoom
As I understand it, setting a text input's font-size to a size greater than 16px, is supposed to disable the autozoom effect that happens when you activate the text input on a mobile device. I set the font-size to 30px, but the autozoom effect is still there. Tested on Chrome,...

How to have an image zoom in and out automatically in the background

html,css,zoom
I have a background image set in HTML, using CSS, the image is a full size background image, covering all of the web page. What I'd like to do is have the image zoom in and out automatically in the backround without any user interaction. Here's a gif explaining what...

Android ImageView how to set initial zoom

android,imageview,zoom
I have already managed to create a view (ZoomableImageView) which will support zoom-in and zoom-out commands (pinch to zoom). What I cannot manage, is how to set an initial zoom state for the view. For example, I'm listening to a double tap event (through a gesture listener of another class),...

Reset zooming in (pinch) android tablet browser (google chrome) using javascript, html

html,google-chrome,resize,zoom,tablet
On a html page opened with google chrome on android tablet, i need to catch that user has done some zoom in (pinch in) and reset it to default after some seconds. (zoom out to default screen size. but i do not want totally prevent zooming, i want allow it,...

Programatic zoom in D3

javascript,d3.js,zoom
Using the code pattern here, I want to programmatically achieve semantic zooming (in or out). I'm unsure how to get the proper x, y, and scaleExtent terms that are augmented via the zoom: var svg = d3.select("body").append("svg") .attr("width", width) .attr("height", height) .append("g") .call(d3.behavior.zoom().x(x).y(y).scaleExtent([1, 8]).on("zoom", zoom)); See JSfiddle here. The zoomIn...

Stretch div with property css “zoom” in internet explorer

css,internet-explorer,zoom,stretch
I have a div with the zoom property applied, inside another div. .zoom{ zoom:0.5; } I want that it takes the aspect in google chrome, zoom in the text inside the div and fill all width of the wrapper div. My problem happens in IE, where the div shrink. What...