Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-15888

Android: WebView cannot pinch zoom on map

    Details

      Description

      Problem Description

      The WebView is unable to zoom in on maps using pinch gestures.
      The issue seems to go away if the user pinch zooms another part of the page or on a previous page, before pinch zooming the map.
      Android API level is set to 11 in the tiapp.xml manifest.

      Extra info

      Example pages where pinch zooming doesn't work:
      http://leafletjs.com/examples/mobile-example.html
      https://maps.google.com/

      Viewport metatag is being used on the page to correctly scale the html on the device
      <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />

      Q&A about the issue:
      http://developer.appcelerator.com/question/158749/titanium-webview-leafletgmaps-pinch-zoom-not-working-properly

      Testcase

      Example.js

      var win = Ti.UI.createWindow({
      	top: '20dp',
      	width: Ti.UI.FILL,
      	height: Ti.UI.FILL
      });
       
      win.add(Ti.UI.createWebView({
      	width: Ti.UI.FILL,
      	height: Ti.UI.FILL,
      	url: 'http://leafletjs.com/examples/mobile-example.html'
      	//url: 'https://maps.google.com'
      }));
       
      win.open();
      

        Attachments

          Activity

            People

            • Assignee:
              sunila Sunila
              Reporter:
              stsje Stephan Jensen
              Reviewer:
              Hieu Pham
            • Watchers:
              0 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-17971
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration