locked
google map in mobile application RRS feed

  • Question

  • hi expects

                how to use google map in asp.net mobile application ?. 

    thanks for sharing the information


    Ranganathan.P., Software Developer., Bangalore India.
    Tuesday, June 16, 2009 7:01 AM

Answers

  • Tuesday, June 16, 2009 7:21 AM
  • Hi,

    Look at these articles
    http://www.codeproject.com/KB/custom-controls/LatLaysFlat-Part1.aspx
    http://www.codeproject.com/KB/custom-controls/LatLaysFlat-Part2.aspx
    http://www.codeproject.com/KB/custom-controls/LatLaysFlat-Part3.aspx
    http://www.codeproject.com/KB/custom-controls/LatLaysFlat-Part4.aspx
    They tell how to use Google Map interface in ASP.NET (C# and JavaScript).

    Here is an example how to show google on the device.
    Save the code below to a html file, copy it to the emulator and lauch IE.

    !!!
    The described solution works only on Internet Explorer Mobile 6.
    It means Windows Mobile 6.1.4 and above.
    !!!

    <!DOCTYPE html "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title>Google Maps JavaScript API Example</title>
    <script
    src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=My_KEY&sensor=true"
    type="text/javascript"></script>
    <script type="text/javascript">

    function initialize() {
    if (GBrowserIsCompatible()) {
    var map = new GMap2(document.getElementById("map_canvas"));
    map.setCenter(new GLatLng(37.4419, -122.1419), 13);
    map.setUIToDefault();
    }
    }
    </script>
    </head>
    <body onload="initialize()" onunload="GUnload()">
    <div id="map_canvas" style="width: 500px; height: 300px"></div>
    </body>
    </html>

    Also the next links might be helpful
    http://code.google.com/p/iphone-google-maps-component/
    http://code.google.com/p/iphone-google-maps-component/issues/detail?id=5
    Tuesday, June 16, 2009 8:11 AM

All replies

  • Tuesday, June 16, 2009 7:21 AM
  • Hi,

    Look at these articles
    http://www.codeproject.com/KB/custom-controls/LatLaysFlat-Part1.aspx
    http://www.codeproject.com/KB/custom-controls/LatLaysFlat-Part2.aspx
    http://www.codeproject.com/KB/custom-controls/LatLaysFlat-Part3.aspx
    http://www.codeproject.com/KB/custom-controls/LatLaysFlat-Part4.aspx
    They tell how to use Google Map interface in ASP.NET (C# and JavaScript).

    Here is an example how to show google on the device.
    Save the code below to a html file, copy it to the emulator and lauch IE.

    !!!
    The described solution works only on Internet Explorer Mobile 6.
    It means Windows Mobile 6.1.4 and above.
    !!!

    <!DOCTYPE html "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title>Google Maps JavaScript API Example</title>
    <script
    src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=My_KEY&sensor=true"
    type="text/javascript"></script>
    <script type="text/javascript">

    function initialize() {
    if (GBrowserIsCompatible()) {
    var map = new GMap2(document.getElementById("map_canvas"));
    map.setCenter(new GLatLng(37.4419, -122.1419), 13);
    map.setUIToDefault();
    }
    }
    </script>
    </head>
    <body onload="initialize()" onunload="GUnload()">
    <div id="map_canvas" style="width: 500px; height: 300px"></div>
    </body>
    </html>

    Also the next links might be helpful
    http://code.google.com/p/iphone-google-maps-component/
    http://code.google.com/p/iphone-google-maps-component/issues/detail?id=5
    Tuesday, June 16, 2009 8:11 AM