Hi,
How can I display google map in stand alone widget?
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 !!
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.
Where 'map_container' could be a <div> defined inside your <body> tag: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); }
Hope it helps,Code:<body> <div id="map_container"></div> </body>
Pit
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 !!
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
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 !!
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
Definitely by changing the longitude and latitude we can change the means move the map.
Regards,
Ravindra Suthar
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
The same thing i have handled here by repositioning of coordinates.
http://wiki.forum.nokia.com/index.ph...et_application