Questions tagged [panning]

"panning" refers to the rotation in a horizontal plane of an object or viewport.

"panning" refers to the rotation in a horizontal plane of an object or viewport. This is a term usually applies to cameras (or the viewport, in computer terms).

206 questions
1
vote
0 answers

Simple panning of a canvas

I wanted to add a zoom/pan feature to a canvas. I have the zooming working fine, but I'm having issues with the panning. The closest I got was being able to pan with extreme shaking of the canvas and then the zoom feature not working at all. I have…
pfinferno
  • 1,779
  • 3
  • 34
  • 62
1
vote
0 answers

Translading camera with mouse after rotating with libGDX

I'm building a map viewer and implemented rotating, panning and zooming with mouse just fine. The problem is when I try to pan after rotating the camera. If the user makes a vertical movement with mouse after the camera is rotated 30º, the camera…
Joins
  • 11
  • 2
1
vote
1 answer

Avoid custom overlay click event when map is panning (google maps API)

Related to this question: 'Make custom overlay clickable (Google Maps API 3)' and related also to my comment in the same question (posted here to give it more visibility and because I think is other problem). I have added a click listener to my…
christiansr85
  • 867
  • 19
  • 40
1
vote
2 answers

How do I pan the contents of a div when the right mouse button is dragged?

I need a cross browser way of capturing the right mouse click, preventing the default context menu and making it where when the user drags the mouse they can pan the contents of a div. This is largely similar to Google maps in that they will grip…
Shaunwithanau
  • 575
  • 5
  • 13
1
vote
1 answer

Panning in Highcharts (In Mobile Devices)

Im using highcharts for plotting a column type chart. Data on x-axis is not a timestamp based one. It is normal categories only. Like the one in the below mentioned fiddle. JSFIDDLE : http://jsfiddle.net/BalajiR/d1LL2tvk/4/ I have enabled panning,…
Balaji
  • 261
  • 6
  • 12
1
vote
1 answer

Panning the view of a gameObject instead of the camera in Unity3d?

I'm having a hard time to pan a view of a gameObject in Unity3d. I'm new to scripting and I'm trying to develop an AR (Augmented Reality) application for Android. I need to have a gameObject (e.g. a model of a floor), from the normal top down view,…
1
vote
1 answer

Panning relative to the current view with a fixed FlyToSpeed with GoogleEarth

I try to pan Google Earth relative to the current view with the GE-PlugIn in C# (Interop.GEPlugin.dll) as described in the documentation (https://developers.google.com/earth/documentation/camera_control) with a fixed FlyToSpeed. While setting the…
user3704293
  • 1,026
  • 2
  • 16
  • 28
1
vote
1 answer

How to make a camera panning js script in Unity3d

I am trying to make the following camera panning js script, to work as it should, meaning panning the camera left and right. What I have accomplished till now, is to move camera only left and back to its starting position. I can't get it move left…
CodeBugging
  • 321
  • 12
  • 28
1
vote
1 answer

Panning on windows phone 8 not working

So I have an application with a long list selector, half the text goes off the screen, so I was trying to pan it when the user flicks the screen. This is the code I have so far... C#: private void RouteLLS_ManipulationDelta(object sender,…
user3263978
  • 193
  • 1
  • 2
  • 14
1
vote
0 answers

Canvas: Stop panning at end of image

I'm implementing the ability to zoom-in and pan around my canvas. I'm doing this by having two canvases, one for the drawing and one displaying the viewport. I'm having trouble finding the limit for the clipping region. Anyway this all works, i'm…
Lee Brindley
  • 6,242
  • 5
  • 41
  • 62
1
vote
0 answers

Touch event on scaled custom ViewGroup returns view of non scaled state

I have been having the hardest time trying to figure this out, so I really hope someone can help, or at least point me in the correct direction. My goal is to have a ViewGroup which supports scaling and panning. I have tried a bunch of different…
MHolst
  • 31
  • 1
  • 3
1
vote
1 answer

Show a subset of points on an AndroidPlot line chart

I've been working with Androidplot library for generating line plots and be able to do zoom and pan, so I'm using a modified version of XYPlotZoomPan class. My current chart is showing some values per day, in a range of dates, so if I'm showing 7…
1
vote
1 answer

Google Maps incorrect overlay after panning

I am putting an overlay heatmap on top of a Google Map. More specifically I am using this plugin: http://www.patrick-wied.at/static/heatmapjs/example-heatmap-googlemaps.html Now, my implementation is slightly different from the demo, as I am…
Franco
  • 53
  • 5
1
vote
0 answers

How to zoom + pan ellipses in D3 using zoom behavior

I have recently applied a pan + zoom based on the D3 example http://bl.ocks.org/mbostock/3680957 This works great for polygons, lines, circles, but not ellipses. When I pan + zoom the ellipse and scale the rx and ry values, respectively the new…
user2536502
  • 71
  • 1
  • 1
  • 5
1
vote
0 answers

Getting (x,y) coordinates of a click after zooming has occurred

I've got a custom view, which is essentially a grid drawn onto a canvas, for which I have implemented panning and zooming. These work fine, but I also want to be able to find the grid coordinates of a click. In order to do this, I must compensate…
Rookatu
  • 1,487
  • 3
  • 21
  • 50