Community Questions & Answers
How to limit the zoom on Google Maps v2 and iOS maps?
Hi All, I'm working with maps on both iOS and Android. I've gone through the docs and I don't see anything that appears to address this need. I have as a goal to display locations in a way that supplies strictly high level information- nothing too...
pinch event and zoom on a simple view
Hi, how can i implement zoom on a simple view at the pinch event? thanks in advice
Image zoom
Hi all, I am using below code to zoom image on the clicked position. The problem is on click of left corner(south east) the image zooms to right corner(north west) and all other sides it works fine. ~~~ var image_view = Ti.UI.createImageView({ image...
Android webview - pinch to zoom works only after a scroll occurs
Hi all, i have a strange behaviour when using webviews in Android. My purpose is to manage pinch-to-zoom gesture for images, so i chose a webview to do id. Everything works perfectly but only after a scroll. Il try to explain: when the webview is loaded...
Get label height when height property is auto
I'm trying to get the current height of a label. This label got the 'auto' height property when I create it. I need to get the new height after changing for a bigger font. The only property I can get is 'auto', there's no way I can get the height in...
Reset zoom scale in webview
Is it possible to programmatically reset the zoom/scale that the user has done in a webview? My issue is when the webview is pinch zoomed in landscape and you rotate the phone, the webview is still zoomed in and in my case, portrait mode is now extremely...
Smooth zoom (pinch)
This is the code I use to zoom an image view. It works but the zoom is not smooth. After some fingers movements, it resizes abruptly, allowing very little control to the user. Any workaround? ~~~ function pinch(e) { var _width =...
Pinch to zoom in Android
Hi, I am trying to implement pinch to zoom in Android using ImageView. Following in the code which seems to be working with certain issue: ~~~ var lastScaleValue = 1; var win = Titanium.UI.createWindow({ exitOnClose : true, navBarHidden :...
Pinch to zoom in iOS
Hi, I am trying the following code using 3.0.2GA, iOS 6 simulator and the pinch to zoom feature is working as expected, but there is an issue in the UI. Below is the code: ~~~ var win = Ti.UI.createWindow({ backgroundColor: '#000' }); var image =...
Page Flip Module Zoom
Is there anyway to zoom by pinch/pull when displaying a pdf with the Page Flip Module? Sometime the reader needs to zoom in on the document.
Direction between 2 location - MapView Zoom level calculation
Hi , In my app i should show direction between 2 location. I can able to draw the line direction between those 2 point. Now i should set zoom level that should show both location on the screen. But now most of the time destination location is not on...
Zoom imageView always restart to original state
Hi everybody! I tried do make a pinch zoom in an imageView and it works, the problem is when I do a pinch for the second time the image return to original scale and then zoom from that. It never save the scale that previously had in the first pinch. Any...
Prevent zooming the letterbox areas
I have a scrollview, let's say it's in portrait orientation. I have an imageView inside it, which fills the entire screen. The image inside the imageView is in landscape, so there are transparent areas below and over the image. This is fine, until you...
Setting Zoom Distance Within a View
I'm having trouble figuring out how to set the zoom level of a view. For instance, let's say I have a view that is 3000x3000px, and I want to display the entire view inside of a window without changing the dimensions of the view itself. Is there a zoom...
Scroll View - How to set zoomScale ?
Hi ! In Application I have a lot of scrollViews in which are images. User can change zoom of image by pinch gesture. What I need is set default zoom ( 1.0 ) after double tap on view. Problem is listener... --- scrollView.addEventListener('doubletap',...
TiScrollView's Wrapper View
After looking around Ti's ScrollView implementation, I understand that it uses a UIView called wrapper to hold child views, and that it is also used for scaling. This works very well, when used for normal purposes (when the user doesn't scale the...
Ipad MapView Zoom By miles
Hello Friends, I am working on mapview And need to give functionality that User's can zoom the map as per miles. i have basic idea about zooming that i need to set lattitudeDelta & longitudeDelta for that. Now My Question is how to set value of...
Map view zoom problem
After I am done zooming in or out of a map view, it zooms just a little bit more for me. How do I prevent this behavior?
Any way to remove Plus/Minus zoom tool that pops up in Android Map View when pinching?
I am using a simple Map.View in an iOS/Android application, and when I pinch to zoom on Android, it pops up this ugly little gray tool with a magnifying glass and +/-, which provide a second way to zoom in/out. It is pretty useless, since multitouch...
Can't zoom out map View
Hi, I use this little piece of code to display a map in a view contained in a window (iOS): ~~~ var w = Ti.UI.createWindow({title:"Cerca",backgroundColor:'#000000'}); var v = Ti.UI.createView({backgroundColor:'#ffffff'}); var...
zoom imageView
Hi, How to zoom a photo in ImageView ? thanks
imageView on Android - Picture going out of the screen
Hello, I'm using imageViews - canScale:true/enableZoomControls:true - in the Android app I'm developing. Is there any way I could lock the picture so users can't "push it out of the screen" when they move it around? Do I need to encapsulate my...
Scrollableview change page when Scrollview zoomed
Hi, I'm building a images gallery using an array of ImageView inside a ScrollableView and this within a ScrollView. But when I zoom the image, scrollable image does not change the end of the scroll. ~~~ var that = {}; var news =...
Multiple Image ScollViews - Odd Behaviour in Zooming
Hiya So in my iPhone app i am needing to have 4 images that the user can zoom in and out and position. Each image is placed inside a scrollView to allow panning and zooming automatically. Unfortunately i am getting some odd behaviour when trying these...
Doubletap to zoom in to tapped location?
I have this code that works for zooming in with a doubletap but how do I get it to zoom into the location that was doubletap'd? ~~~ function floorMap(_args) { var self =...
Zoom to Annotations - extents
I had this problem and saw a few people that posted some code but it didn't exactly work for what I needed. Thought I'd pay forward the help I've received in the past. In this code, not the parseToFloat function is needed because in my case the long/lat...
Pinch Zoom In Android
I have implemented pinch zoom in i-phone but now want to implement it in android but pinch event is not supported on android., please help me how to do it
pinch in/ out canvas in a webview
I think everything is in the title :) I've also seen that there's something about a native canvas in the titanium sdk, any one about it ? Thanks for your help
Webview Pinch and Zoom not work on local HTML file
Hi, I've tried to load a remote HTML into the webview and it can be zoom in/out and pinch. However, when I use the same HTML and load at as local file, it cannot zoom or pinch, does anyone have this problem also? Here's my code fragment: app.js ~~~ var...
doubletap zooming in ScrollView
Hi. I cannot find any way to zoom scrollview by doubletap. ~~~ scrollview.addEventListener('doubletap',function(e) { scrollview.zoomScale = 2.0; }); ~~~ This doesn't work.
Zoom in webview onload
Hi. Is it possible to have a remote url that i dont have any control over to zoom in to initial-scale 2.0 on load. The content on the page i want to display is just 50% and when i double click and zoom it is perfect. How do i make it fill the whole...
Preset height and width?
I was curious if there is a way to preset the height and width for the zoom area on a webpage. Currently I have a open web page view where I am viewing one webpage. And the page is huge and the user has to zoom in automatically. Is there a way that I...
ScrollView doesn't scale on Android
Does ScrollView no longer scale on Android? I have an application that scales 4 images at once using the pinch event on iOS. However, that event is not supported on Android, and attempts to get the scale event on a scroll view have been fruitless. Is...
Android Webview Zoom Issues in 2.1.1
I think this is most likely just a bug, but I wanted to see if anyone had a workaround. With Titanium 2.1 running on Android 2.3.x on some devices like Nexus One and Thunderbolt zoom (and pinch to zoom) will not work in a web view until you swipe or...
Pan and Zoom Images
Hi, I'd like to be able to pan an image and zoom it with either a pinch or doubletap. I had tried scrollView but found it was limited to one direction. I then used the canScale property in the imageView, This reduced the width of the viewable area and...
add a zoom scale limit on android
hi, in my android app i have this zoom function: ~~~ function updateTransform(view) { var transform = Ti.UI.create2DMatrix() .scale(lastScale*currentScale); transform.tx = lastTranslation.x+currentTranslation.x; transform.ty =...
Imageview scale/zoom event?
Is there a way to tell if a user has scaled/zoomed an imageview in android? I didn't see any properties for zoom but was hoping someone may know a hack.. I am overlaying labels on an image and when the user zooms those label are not in the correct place..
Explain ScrollView values....
First, let me explain what I am trying to do. I have a US map which I have put in a scrollView. I want the user to be able to zoom in on the map, so I have made the map rather large (approx 3000x1700px). I have set the scrollview with this code: ~~~ var...
scrollView iOS disable scrolling when zoomed
I need to disable scrolling when you are zoomed in. I have tried different approaches with contentHeight but no luck. Any suggestions?
Zoom in and out on Android?
I have updated Titanium sdk to 2.1.0GA, and I try to make ImageView to be able to zoom in and out, but it isn't working. Here is my code. ~~~ var window = Ti.UI.createWindow({ backgroundColor : 'black' }); var img = Titanium.UI.createImageView({ top :...
Center Image in scrollView while scrolling.
How to place image at center position while scrollview zoom is increases and user moves image by touch. image place to be center when user moves image in the scrollview. for example: ~~~ var imageScrollView = Ti.UI.createScrollView({ minZoomScale:1.0,...
simply zoom an image on iPad
Hi, in my iPad app i need to simply zoom an image view on pinch how can i do? thanks to everyone
capture zooming image
i work a camera application. all functionality work properly but i could not capture zooming image with slider zooming functionality can u suggest some idea to me how to solve this problem
ScrollableView zoom does not work
~~~ var imageView = Ti.UI.createView(); imageView.add(imageBig); var scrollViewImageDetail = Titanium.UI.createScrollableView({ views : imageArrayView, showPagingControl : false, currentPage : e.source.indexInArray, maxZoomScale :...
ScrollView Zooming doesn't respect content sizes
I seem to have run into an issue. When you zoom in content into a scrollview, it seems that the content size used is the width and height of the scrollview scaled instead of using the content size scaled. Here is some code ~~~ var win =...
[Beginner] ImageView(s) into ScrollView and zoom (doubletap, pinch,...)
Hi ! I have a scrollView wich contain a few ImageView (for an horizontal gallery). ~~~ var views = []; for(var i=1;i<14;i++) { var imageView= Ti.UI.createImageView({ height:368, image:'../img/book/page'+i+'.jpg', canScale:...
Zoom In & out as per scale property of pinch evenlistener
I want the view to zoom in & out on basis of my pinch gesture. I have written the following block of code. I need some suggestion as I have not yet succeeded. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ var win =...
Panning of images
~~~ var self = Titanium.UI.createWindow({ backgroundColor: 'white', navBarHidden: false }); var bigImg = Ti.UI.createImageView({ url: "http://www.codebox.in/projects/bebo/a.jpg" }); var scrollView =...
iOS ERROR in scrollView dblclick event
I've got a simple ScrollView, with a remote image inside when I double click the image, it checks for scroll view scale value, and then sets it to 1 or 2 accordingly. ~~~ var fullImage = Ti.UI.createImageView({ image: image, }); var...
Get x,y on imageview click event relative to entire image when zoomed, not relative to imageview size
I am displaying some images in an imageview and I am allowing this to be zoomed and scrolled. I need to catch click events and return the point clicked relative to the entire image. I could also calculate this, but I don't see an event that will allow me...