×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Dec 2008
    Posts
    3

    Exclamation Unable to show Google Map on the S60 5th Ed emulator using Javascript

    Hi.
    I'm currently doing on a school project on developing a location-based google map on the S60 5th Ed emulator. I will be using javascript to show the google map.
    I need to show a google map with a marker based on the device's current GPS position. But I can't even show a simple google map on the device when it loads.

    Parts of the code in my JS file:

    $(document).ready(function(){
    setup();
    });

    function setup()
    {...
    setupMap();
    }

    function setupMap(){
    if (GBrowserIsCompatible()) {

    map = new GMap2(document.getElementById('map'));
    map.addControl(new GSmallMapControl());
    }
    }


    Is there any error I made to can't even show a simple google map on the device?

  2. #2
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: Unable to show Google Map on the S60 5th Ed emulator using Javascript

    Hi,

    welcome to Forum Nokia Discussion Boards!

    Google Maps standard JS libraries have probably some parts not perfectly suited for their usage on mobile clients: my personal hint is to give a look at Google Static Maps, since they have significant lower impact on your app weight and are surely compatible (maps are rendered as just images): only drawback is that you have to code the map loading/interaction logic by your own. Anyway, you can find a lot of sample code snippets just searching a bit..

    Pit

  3. #3
    Registered User
    Join Date
    Dec 2008
    Posts
    3

    Re: Unable to show Google Map on the S60 5th Ed emulator using Javascript

    If i'm doing a static google map, can i reflect the NMEA parsing GPS data in the google map?

Similar Threads

  1. Map and Navigation API on S60 3rd FP2
    By tote_b5 in forum Symbian Tools & SDKs
    Replies: 3
    Last Post: 2007-09-24, 18:43
  2. Replies: 1
    Last Post: 2007-06-06, 20:51
  3. What is going on with Vibration on S60?
    By amd_rikus in forum Mobile Java General
    Replies: 3
    Last Post: 2006-06-16, 00:29

Posting Permissions

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