android pinch-zoom in Google Maps - android

Is pinch zoom functionality in Google map is possible, i have made several search but didn't get any solution, please give your view.
Or need to write the api for implementing these functionality.

Are you using ScaleGestureDetector to achieve Pinch and Zoom?
http://developer.android.com/reference/android/view/ScaleGestureDetector.html
Refer to this blog post on how to leverage multi touch in Android
http://android-developers.blogspot.com/2010/06/making-sense-of-multitouch.html

Related

Circle menu for mapview Marker in Android google maps API V2

I'm looking to create a circle menu for markers in my app that uses Google maps.
I've found this online example of what I am trying to do:http://demo-ee.com/index.php/examples/view/circle-menu-for-marker-with-mx-google-maps-for-expressionengine#
The problem is that this is for google maps in a webview, I'm looking to do this on Android.
Does anyone know if this is possible to achieve with google maps for Android and if it is, how much work would be involved to do it?
Is it possible to rebuild this example code in java to use in an Android app?
thanks
I put this as an answer and not as a comment, but I don't think you can achieve the same.
First of all, on android you don't have the "hover" callback for maps, you can only use the onMarkerClick listener.
You could try to build a custom infowindow (there are a few tutorial online but never followed, so I can't give you a trusted one, you have to try :( ) and check if the iw can be placed around your item. Unfortunately on android there is a limited set of functionalities, but to be honest, I would explore a different UX for that (cards, dialogfragment or other).
Check how google maps behaves when clicking on a place (a view scrollable from bottom with details).
You can also think about using a toolbar/expandingtoolbar

Osmdroid and Pinch

I'm developing an app using osmdroid (3.0.8).
When I zoom using two fingers in and out, the zoom starts from the center of the map, not from the middle of the two fingers (using MapView.setMultiTouchControls(true);). I've tried to implement the pinch (pinch) but with bad results.
I've read other similar questions but without finding a good solution.
Note: I MUST use OSM, and not other solutions
Osmdroid 3.0.10 includes support for zooming at the location you pinched at.
The samples also include a two-finger rotation gesture overlay if that is something you are interested in trying.

Simultaneous pan and zoom with Android MapView

Is it possible to handle simultaneous zoom and pan events using a MapView?
The Google Maps app for Android allows the map to be panned while a pinch-to-zoom gesture is already underway. This is helpful for making fine adjustments while you zoom in on a region of the map. The default MapView does not seem to support this.
I am prepared to implement this functionality myself, but I would prefer to use the built-in mechanisms.
I solved this problem using an Overlay. By overriding the overlay's onTouchEvent() and detecting when zoom and pan events happen, those events can be handled in parallel.
For anyone facing this problem, I have posted a sample project based on my solution.
EDIT:
The new Google Maps v2 library supports simultaneous zoom and pan. Unless there is a need to customize the event handling algorithm, I strongly recommend upgrading to the new library.

Pinch Zoom out in Google Maps in Android?

I am developing an application in Android in which I'm using google map using the Javascript V3 library with Phonegap. It works fine for me until I noticed that map is zooming in on touch event but couldn't able to zoom out when I tried for number of times.
I'll appreciate if someone suggest me how I can get the pinch zoom in and out without using the default zoom controls of Google Maps?
Unfortunately there is no built-in function for this (not yet anyway), so in order to make it work you will have to create your own custom control for this action. This means capturing the touch event and zooming according to the gesture.
To go into a little more details on this, have a control over the map canvas, and in it capture the touch events.
Your second option since you are building for Android native is to use google maps from android (however this is java not javascript). You can find a basic tutorial on this here: http://mobiforge.com/developing/story/using-google-maps-android
Hope this helps,
Vlad

Image handling in android, pinch zoom in browser

Hi All
I am working on an android app where i need to implement an image zooming functionality(zoom will work by moving fingers apart and bringing them together will zoom out the image).This is just like the way iphone does.
Could anyone please let me know is this possible?,Does Android provide any inbuilt support in SDK for doing this?.Is there any kind of tutorial for doing this?.
Android default browser supports pinch zoom?
ya pinch zoom is possible in android but after 2.2 version,and also many hardware doesn't support this feature.
but if you want to implement you can take look here..
http://www.zdnet.com/blog/burnette/how-to-use-multi-touch-in-android-2-part-6-implementing-the-pinch-zoom-gesture/1847
i think it will help you.

Categories

Resources