a digital blog

Java Script, PHP, Tutorial

Adding Google Map to your website

google map

Google Maps is a web mapping service application and technology provided by Google. Google Maps provides high-resolution aerial or satellite images for most urban areas all over the world. Adding a Google map to your web site showing your business location is easy and there is no cost to do this. I have recently developed a simple API for this.

Download Link   Demo Link

 

Basic requirement for this api is latitude and longitude of your location, full address description and small image as a pot in map.

For Latitude and longitude you can go to this site  http://itouchmap.com/latlong.html


index.html

Contains simple HTML and Java Script code.

<script type=”text/javascript” src=”http://maps.google.com/maps/api/js?sensor=false”></script> //Google map js by google
<script type=”text/javascript” src=”js/googleMapApi.js”></script>
// Google map api  file where all the map setting define.

<script type="text/javascript">
function showGoogleMap(){
     var lat='19.080218';       // Latitude of location
     var lang='72.849516';    // Longitude of location
     var desc='<div>'+          // Full address
                  '<h1>91 Web Lessons</h1>'+
                  '<div>'+
                     '<p>Gudaspur</p>'+
                  '</div>'+
              '</div>';
    var showImage='image/logo_small.png';  // logo image
    var imageTitle='91 Web Lessons';    //logo title
    var divId='map_canvas';  
    // id for html control, where you display your map
    initializeMap(lat,lang,desc,showImage,imageTitle,divId);  
    // call google map api function
}
</script>
<div id="map_canvas" style="width:925px; height:500px"></div>

27 Comments

  1. I was studying some of your content on this website and I conceive this web site is really informative ! Keep putting up.

  2. Thanks for taking the time to write this. Ill be passing on the link to friends to check it out themselves. I will probably throw a link to this on one of my websites.

  3. Great post. this is exactly what i was looking for…

  4. You need to participate in a contest for among the finest blogs on the web. I’ll advocate this web site!

  5. Pretty component of content. I just stumbled upon your website and in accession capital to assert that I get in fact enjoyed account your blog posts. Any way I will be subscribing to your feeds or even I fulfillment you access constantly rapidly.

  6. This is very attention-grabbing, You are an excessively skilled blogger. I have joined your feed and look forward to in search of more of your great post. Also, I’ve shared your site in my social networks

  7. I conceive this web site contains some very fantastic information for everyone. “Anger makes dull men witty, but it keeps them poor.” by Francis Bacon.

  8. I have been browsing online greater than three hours these days, but I never found any attention-grabbing article like yours. It’s lovely value enough for me. In my opinion, if all website owners and bloggers made good content material as you probably did, the web can be much more helpful than ever before.

  9. I think the admin of thiѕ web рage iѕ in fact worκing
    hard for his web pаge, for thе reason that hеre every stuff is qualіtу based stuff.

  10. Thank you so much for bringing this to our attention. This is a great artile post with a lot of information, good content!

  11. Hello there, just became aware of your weblog via Google, and located that it’s truly informative. I’m gonna watch out for brussels. I will be grateful in case you continue this in future. Numerous other folks will be benefited from your writing. Cheers!

  12. Great put up, very informative. I wonder why the opposite experts of this sector do not realize this. You must continue your writing. I’m confident, you’ve a huge readers’ base already!|What’s Taking place i’m new to this, I stumbled upon this I’ve found It absolutely helpful and it has aided me out loads. I am hoping to contribute & aid other users like its aided me. Great job.

  13. I appreciate, lead to I discovered just what I used to be having a look for. You’ve ended my four day long hunt! God Bless you man. Have a great day. Bye

  14. Excellent site. A lot of helpful info here. I am sending it to several friends ans also sharing in delicious. And naturally, thanks on your sweat!

  15. I used to be able to find good info from your
    articles.

  16. I don’t even know how I stopped up right here, but I believed this put up was once great. I do not recognise who you might be but certainly you’re going to a famous blogger in the event you aren’t already. Cheers!

  17. I found your website through a random stroke of luck. It helped me do my research on this topic. I have spent lots of time looking through your site. You have something good going here, keep it up!

  18. When I first saw this title Adding Google Map to your website | 91 Web Lessons on google I just whent and bookmark it.I truly appreciate this post. I have been looking all over for this! Thank goodness I found it on Bing. You have made my day! Thank you again!

  19. Paul

    Fantastic work..

  20. After looking at a number of the articles on your web site, I truly appreciate your technique of blogging.

    I bookmarked it to my bookmark site list and will be checking back in the near future.
    Please check out my website too and tell me your opinion.

  21. Hey there! Someone in my Myspace group shared this web site with us so I came to take a appear. I am surely enjoying the data. I am bookmarking and will probably be tweeting this to my followers! Exceptional weblog and outstanding style and design.

  22. Great piece of information! May I reference part of this on my blog if I post a backlink to this webpage? Thanks.

  23. Valuable info. Lucky me I discovered your website by chance, and I’m stunned why this twist of fate did not happened in advance! I bookmarked it.

  24. I absolutely love your blog and find the majority of your post’s to be exactly I’m looking for.
    Do you offer guest writers to write content in your case?
    I wouldn’t mind publishing a post or elaborating on most of the subjects you write in relation to here. Again, awesome website!

1 Pingback

  1. Raul


*

Copyright © 91 Web Lessons - a digital blog