2

I used googlemap in my project. I doesn't wish to zoom map in any case. I wish to disable zooming when swipe on screen. I used,

        map.getUiSettings().setZoomControlsEnabled(false);

But it did not useful to me. Can anyone help me? Thanks in advance.

Parthi
  • 669
  • 1
  • 9
  • 26
  • Did you try http://stackoverflow.com/questions/15878616/google-maps-android-mapview-v2-disable-zooming? – shyam Oct 24 '14 at 12:54
  • No. now I tried. But I got error when putting this in xml. map:uiZoomGestures="false". I got errors like attribute missing the android namespace prfix. how can I solve it? @shyam – Parthi Oct 24 '14 at 13:03
  • @shyam K thanks. I got this with map.getUiSettings.setZoomGesturesEnabled(false); I have one more doubt. Is there any possibility to touch disable on googlemap? – Parthi Oct 24 '14 at 13:07

1 Answers1

3

What do you mean with "it did not useful to me"? What you posted is correct as it will disable the zoom controls. But you probably also need to disable the gestures so

map.getUiSettings().setZoomGesturesEnabled(false);
Carsten
  • 806
  • 5
  • 6