How to create a Basic Google Maps

Posted by Sumeet Arora
6
Mar 30, 2016
125 Views

Gmap-javascript.jpg


Making the google maps is not so difficult. Just to follow some code and google apis.We can make any location google map by using the code below. We have taken the example of dehradun location in India for making this google map.

  1. <html>

  2. <head>

  3. <script

  4. src="http://maps.googleapis.com/maps/api/js">

  5. </script>


  6. <script>

  7. function initialize() {

  8. var mapProp = {

  9.   center:new google.maps.LatLng(30.321915,78.026619),

  10.   zoom:5,

  11.   mapTypeId:google.maps.MapTypeId.ROADMAP

  12. };

  13. var map=new google.maps.Map(document.getElementById("googleMap"), mapProp);

  14. }

Here is not the end. Read full Blog about How to create a Basic Google Maps visit Findnerd.


You can also visit for such other blogs on Findnerd like iOS, Android, Java,PHP, Javascript Development Blogs etc.


Comments
avatar
Please sign in to add comment.