google API map not working

Discussion in 'Google API' started by dmukesh, Mar 30, 2009.

  1. #1
    Hi All,
    I am using below code for google map. Its works fine in Nokia E51 but not in Nokia N72/N73 or Sony Ericsson W580i. Please help me.

    <!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>


    :eek::eek::eek: Please Help!!!!!!!!!!!
     
    dmukesh, Mar 30, 2009 IP
  2. dmukesh

    dmukesh Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I got the solution.

    Thanks.
     
    dmukesh, Apr 3, 2009 IP