10/17/2011

Google map API-Introduction

This September, I got an Internship as software developer.
After designing the software on user's demand, we decide to use Google Map API. And to realize other functions, java, javascript, php and database are needed. To be honest, I'm really excited...^^. Although it may be hard for me because I have never used Google Map API, javascript and php before. But just because of this, at least in these two parts, I will rise from level zero to prior experience. ^^. 


Ok, end of crap...^^


Beginning of the Google Map API:


The documents from Google are the best tutor for the API.
http://code.google.com/intl/en/apis/maps/index.html
I think the version 3 is more friendly but...I haven't figured out how to change the size of the info window in version 3. This is really frustrating... Because of this single point I change all my code to version 2. T.T


In version 2, there is a way:



GEvent.addListener(marker,"click", function() {
                
                    map.openInfoWindowHtml(point,html,{onOpenFn:function(){
                            infoWindow.reset(point,infoWindow.getTabs(),new GSize(450,350),null,null);
                        }});

                });

"new GSize(450,350) " sets the size of the info window to (450,350).


Continuing...........(I've to go on coding...Time runs out...But I'll catch up soon!)




No comments:

Post a Comment