×

Discussion Board

Results 1 to 7 of 7

Thread: Google Map

  1. #1
    Registered User
    Join Date
    Feb 2009
    Posts
    18

    Smile Google Map

    Hi ,

    I have used Google Map API to develop an Google Map application in J2me .

    It display image on browser , but on emulator it display a Blank Image.

    Scroll Function is also not working Properly .

    Please Help me .

    Thanks
    Rupesh

  2. #2
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    52

    Re: Google Map

    hi Rupesh, can u explain a little on how r u using Google Map API,?, cause i have done some testing on it and it is working.

  3. #3
    Registered User
    Join Date
    Feb 2009
    Posts
    18

    Re: Google Map

    Thanks Buddy

    I am passing address in geocodeAddress method , from there i am getting latitude & longitude .

    Then i am passing the same lat & lng in retrieveStaticImage method .

    but it display me image in browser not on emulator .

  4. #4
    Registered User
    Join Date
    Feb 2009
    Posts
    18

    Re: Google Map

    I am Sending some part of my code .

    if(d==frmMain)
    {
    if(c==cmdsearch)
    {
    Thread th = new Thread()
    {
    public void run()
    {
    String address = txtsearch.getString();
    System.out.println("Address:-" + address);
    try
    {
    String url = gMap.getGeocodeUrl(address);
    System.out.println("URL="+url);
    double[] db = gMap.geocodeAddress(address);
    System.out.println("db="+db);
    double lng = db[1];
    double lat = db[0];
    System.out.println("db 0:-"+lat);
    System.out.println("db 1:-"+lng);
    String mapurl = gMap.getMapUrl(240, 320,lng,lat, 8, "png32");
    System.out.println("MAPURL:-"+mapurl);
    disimg = gMap.retrieveStaticImage(240,270,lng,lat,8,"png32");
    double vallng = gMap.LToX(lng);
    System.out.println("Value of Lng"+vallng);
    double vallat=gMap.LToY(lat);
    System.out.println("Value of Lat"+vallat);
    double valXTOL = gMap.XToL(vallng);
    System.out.println("Value of XTOL"+valXTOL);
    double valYTOL = gMap.YToL(vallat);
    System.out.println("Value of XTOL"+valYTOL);
    double[] adjust = gMap.adjust(lat, lng, 100,100,8);
    System.out.println("Value of adjust"+adjust);


    }
    catch (Exception ex)
    {
    ex.printStackTrace();
    }
    mapForm(disimg);
    }
    };
    th.start();
    }

  5. #5
    Registered User
    Join Date
    Sep 2007
    Posts
    8

    Re: Google Map

    Hi Rupesh
    Earlier i was also facing same problem image is displayed in browser but not in simulator.
    Please give some specific address in u r search address: like: Red Fort New Delhi India


    I think u will get map.

    Regards
    Sundeep.sharam@mgl.com

  6. #6
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Google Map

    Can I ask if you are using the code from this wiki page, and that you took the code after 15th March?

    I made some changes to the code on the 15th March, so either I fixed it, or I broke it.

    Cheers,
    Graham.

  7. #7
    Regular Contributor
    Join Date
    Mar 2008
    Posts
    198

    Re: Google Map

    Quote Originally Posted by RupeshD View Post
    I have used Google Map API to develop an Google Map application in J2me .
    First, you need to purchase an Enterprise License from Google to use Google Maps in this way.

    Quote Originally Posted by RupeshD View Post
    It display image on browser , but on emulator it display a Blank Image.
    Second, what does the function mapForm() do in your code? I suspect that the problem is in there.

    - Mike
    NAVTEQ Network for Developers
    The community for developing innovative location-based applications
    http://NN4D.com

Similar Threads

  1. How to use Google map API on Symbian /S60 platform
    By zhang_guoqing in forum Symbian
    Replies: 2
    Last Post: 2009-02-21, 20:44
  2. Replies: 2
    Last Post: 2009-02-13, 03:19
  3. Replies: 2
    Last Post: 2008-12-29, 06:53
  4. regarding gps and download of google map.
    By sanee in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2008-12-05, 08:57

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×