none
Touch Enabled Gestures do not work on Dell Tablet (Win 8) on V7 control. RRS feed

  • Question

  • This is what I am trying to do:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
    <head>
        <title>Map with valid credentials</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <script type="text/javascript" src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0">
        </script>
        <script type="text/javascript">
            var map = null;
            var mskey = "...";
            function getMap() {
                setTimeout(WaitForIt, 100);
            }
            function WaitForIt() {
                map = new Microsoft.Maps.Map(document.getElementById('myMap'), { credentials: mskey });
            }    
        </script>
    </head>
    <body onload="getMap();">
    <div id='content1'>
        <div id='myMap' style="; width: 800px; height: 600px; display:block;">
        </div>
    </div>
    </body>
    </html>

    It works great except for when I try to do basic touch enabled pan and zoom on a Dell Windows 8 tablet IE 10 (both metro and desktop mode), it does not work.

    It works great on Google Chrome. The Bing Maps Portal API application works great but my app does not work on IE 10 as posited above.

    I am going to recommend using Google Chrome to my clients but it seems like a shame that Microsoft Technology is not working on Microsoft platform.


    • Edited by Ricky_Brundritt Wednesday, October 23, 2013 8:19 AM Removing Bing Maps Key
    Tuesday, October 22, 2013 3:42 PM

Answers

  • I am sorry! I feel like an idiot. The browser was in compatibility mode. I just now realized after wasting an entire day. As soon as I got out of that, it is working like a charm now.

    A J Raje

    • Marked as answer by A J Raje Tuesday, October 22, 2013 8:14 PM
    Tuesday, October 22, 2013 8:14 PM

All replies

  • In the myMap div add a position property to the style. This is required by most IE browsers. Try adding ";"

    http://rbrundritt.wordpress.com

    • Proposed as answer by Ricky_Brundritt Tuesday, October 22, 2013 7:11 PM
    • Marked as answer by Ricky_Brundritt Wednesday, November 6, 2013 1:20 PM
    • Unmarked as answer by A J Raje Thursday, November 7, 2013 4:11 PM
    Tuesday, October 22, 2013 7:11 PM
  • I am sorry! I feel like an idiot. The browser was in compatibility mode. I just now realized after wasting an entire day. As soon as I got out of that, it is working like a charm now.

    A J Raje

    • Marked as answer by A J Raje Tuesday, October 22, 2013 8:14 PM
    Tuesday, October 22, 2013 8:14 PM
  • More specifically I changed my DocType declaration to:

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

    And Added Meta Tag

    <meta http-equiv="x-ua-compatible" content="IE=edge">


    A J Raje

    Tuesday, October 22, 2013 9:02 PM