×

Discussion Board

Results 1 to 10 of 10

Thread: Google map

  1. #1
    Regular Contributor
    Join Date
    Aug 2004
    Posts
    156

    Google map

    Hi,

    How can I display google map in stand alone widget?
    ||Kiran ||
    Nokia E-65
    Nokia 7610
    Nokia N95 8GB
    Nokia E90
    Nokia 5110 !!
    Nokia 6110i !!

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

    Thumbs up Re: Google map

    Hi,

    you can start taking a look at this Forum Nokia Wiki page:

    http://wiki.forum.nokia.com/index.ph...e_applications

    When working with WRT, It'll be enough to create an <img> tag and set its 'src' attribute to the Google Maps static image URL.
    Code:
    function loadMap()
    {
    	var img = document.createElement("img");
    
    	img.src = "http://maps.google.com/staticmap?center=41.867878,12.471516&format=png32&zoom=8&size=240x320&key=<API_KEY>";
    	
    	document.getElementById("map_container").appendChild(img);
    }
    Where 'map_container' could be a <div> defined inside your <body> tag:
    Code:
    <body>
    	<div id="map_container"></div>
    </body>
    Hope it helps,
    Pit

  3. #3
    Regular Contributor
    Join Date
    Aug 2004
    Posts
    156

    Re: Google map

    Hi Jappit,

    Thanks for being the first to help me, I need something different. I don't want to show the static map image, I want to show that my map should be scrollable and I also need some help for writing java script for it.

    Thanks
    ||Kiran ||
    Nokia E-65
    Nokia 7610
    Nokia N95 8GB
    Nokia E90
    Nokia 5110 !!
    Nokia 6110i !!

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

    Re: Google map

    Got it now

    From my experience, Google Static Maps still have some problems in implementing precise scrolling functions. Anyway, using the standard Google Maps Ajax code would probably be impossible from within a WRT widget (but I've never tried it).

    So, my personal hint would be to look for some other maps providers that offer services useful for your needs, that is: some easy-to-use methods to convert geo-coords into pixel dinstances, and viceversa.

    Pit

  5. #5
    Regular Contributor
    Join Date
    Aug 2004
    Posts
    156

    Re: Google map

    OH! Thanks ..I think will have to drop the idea
    ||Kiran ||
    Nokia E-65
    Nokia 7610
    Nokia N95 8GB
    Nokia E90
    Nokia 5110 !!
    Nokia 6110i !!

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

    Re: Google map

    Never drop! Big results come from the hardest ideas

    Here are some links to other map providers that could help you with your project:

    http://developer.yahoo.com/maps/rest/V1/
    http://developer.decarta.com/web/guest/home

    Pit

  7. #7
    Regular Contributor
    Join Date
    Dec 2007
    Posts
    63

    Re: Google map

    Definitely by changing the longitude and latitude we can change the means move the map.
    Regards,

    Ravindra Suthar

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

    Re: Google map

    If you wish to use Google Static Maps within your Widget, you can have a look at the JavaScript adjust/scrolling function implemented here:

    http://www.polyarc.us/adjust.js

    Pit

  9. #9
    Regular Contributor
    Join Date
    Dec 2007
    Posts
    63

    Re: Google map

    The same thing i have handled here by repositioning of coordinates.

    http://wiki.forum.nokia.com/index.ph...et_application

  10. #10
    Registered User
    Join Date
    Feb 2008
    Posts
    3

    Re: Google map

    Quote Originally Posted by krtrivdi View Post
    OH! Thanks ..I think will have to drop the idea
    Try Yahoo Maps Ajax lib. It works for me. Though very slow.

Similar Threads

  1. Replies: 2
    Last Post: 2009-02-13, 03:19
  2. regarding gps and download of google map.
    By sanee in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2008-12-05, 08:57
  3. GPS related Google map support in Flashlite and Widget application
    By rsuthar in forum [Archived] Flash Lite on Nokia Devices
    Replies: 0
    Last Post: 2008-10-03, 06:37
  4. Google Map and python
    By Chiara81000 in forum Symbian
    Replies: 3
    Last Post: 2008-02-12, 05:18

Posting Permissions

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