Recommended Tips
Below are some simple tips showing how to use google maps on your site :
to use google maps, u will need to do some API programming basics as shown below :
” var map = new gmap2(document.getelementbyid(“map_canvas”)); ”
and also u need some basic HTML language.
Below are the steps u need to do :
1. Inside <body> :
a. Load Map function
b. Define the map display area using width and height inside <div>
2. Inside <Head> :
a. Define the map API Version, GPS censor and developer key which u can get from
code.google.com/apis/maps/signup.html
b. For version, version 2.x (which indicate version 2.1,2.2, etc) are the stable version.
c. Initialize the map object
d. Set the center of the object
e. Select title Style
f. Add Control
g. Add marker
Source code for embed google maps :
if u follow the above tips, u will manage to add google maps into your site as follow :
View larger map
Don’t forget to leave a reply..
Stumbled upon this site via Google looking for answers on embedding maps on my page and just wanted to say thanks for your help!