TurnJS ZoomIn and ZoomOut - turnjs

I am in a search of help. I am using TurnJS API and looking for ZoomIn and ZoomOut functionality using the buttons instead of click/tap on the flipbook. The Zoom-in and Zoom-out need to be factor based for e.g 20%. Each time I click ZoomIn, it should Zoom 20% upto 100 and Zoomout viceversa.
I tried to edit the zoom.js but was unsuccessful. Hope anybody can get back to me on this.

Related

is it possible to change overlay iocn size when zoom osm droid map

I spent many hours on it but not getting any fruitful response.I am trying to increasing the size of overlay icon when map is zoom but its not work, I am new on this please help on this
Yes it is, however you have to do the work. Basically, you need to create an MapView.onChangeListener and register it. When the zoom level changes, you need to iterate though your overlays and replace the icon with one of a different size.
At some point in your travels, you'll probably figure out that there will be concurrency/inconsistency issues with over zealous zoomers and panners. To handle this, you can wait until after the user stops scrolling or zooming after a period of time, then do the work.

MKMap infinite loop setting max zoom height

I have a map view with an overlay. I want to restrict the user from zooming out too far. So if the user scrolls out and cant see part of the overlay it zooms them back in to the max height of the overlay. Like the zooming I also want the user not to be able to scroll of the edge.
I have managed to implement this (or so I thought). The code that I have written works on my iPhone 5 but then when I tested it on my Bosses phone and the simulator the map keeps trying to resize and get stuck in an infinite loop.
Here is a video of my app in the Loop.
From the video I can see that the map should loop as both edges are displayed off the map. To stop this my code zooms in so you cant see both edges before it is meant to move back to the edge the user has moved from.
As I said this works on one of my device but not the others! I have been trying to fix this for three days now and feel like banging my head on the keyboard! Any help would be amazing.
Here is a copy of my Code.
I have commented it and tried to make it easy to under stand.
EDIT: just updated to iOS 6.0.1. It still works on my iPhone 5 but It starts really far zoomed in and sets the min zoom too low

iPhone CorePlot: Candle Stick , how to set more distance between every stick when zoom in and zoom out?

CorePlot: Candle Stick ,
how to set more distance between every stick when zoom in and zoom out?
When i try to zoom out, it looks really terrible.
How can i fix it?
You have several options:
Make the bars narrower using the barWidth property.
Filter your data to show fewer bars. Call -reloadData on the plot to load the filtered data.
Make the whole graph wider (probably not an option on iPhone, but may be practical in an iPad or Mac app).

How to snap to zoom with UIScrollView?

I have a UIScrollView with a content view that the user can zoom in/out. The min zoom level is less than 1, and the max zoom level is greater than 1.
It is easy for the user to zoom all the way in, or all the way out. What can I do to get the UIScrollView to snap to zoom level 1 as well? Not just when the the user lifts their fingers, but as the they are zooming in/out as well.
Write a method, that gets called every time the user stops zooming, which then checks to see if the current zoom scale is very close to 1.0 (like something between 0.8 and 1.2). If this returns true, the zoom scale is set exactly to 1.0 to snap.
The trick is to override or disable the pinch and add your own. When you start a pinch gesture, you DO NOT update the display and resize the image until the pinch is complete, then issue your zoomToRect.

How to implement pinch to zoom and flick with momentum for a drawing (graph) Core Graphics app?

In my app, I drew a graph using Core Graphics (inside a view, inside a view). Not a graphing calc app though, it graphs patient data and marks it every six months, and it is larger than the screen, so the user needs to have some way to move around. I was wondering if there is an easy way to implement pinch to zoom, or to flick with momentum. I was planning on just using UITouch to get notified when these actions were performed, but it doesnt really give you a lot of information. For example, all you get with the pinch to zoom is the ratio that they have zoomed, and all you get with the flick is the direction that they have flicked. So, I was just going to implement basic flicks without momentum, and simple pinch to zoom without being able to move around too.
But I figured I would ask here first, to see if anyone has a better idea about how to do this (easily).
EDIT: I found lots of places that tell you how to do this with photos, but none with core graphics or something like that, thanks.
I ended up using a UIScrollView, which implements pinch to zoom, and flick automatically (well, almost).