Skip to content
Loading
How to get google map using two cordinate
-1
  • Sachin Singh
    use google map javascript and fetch Lat/long coordinates from database and show it on map
    1.   
    2.   
    3.     
    4.     Lat/Lng Object Literal  
    5.     "https://polyfill.io/v3/polyfill.min.js?features=default">  
    6.     
    7.       src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap&libraries=&v=weekly"  
    8.       defer  
    9.     >  
    10.     "text/css">  
    11.             #map {  
    12.         height: 100%;  
    13.       }  
    14.   
    15.     
    16.       html,  
    17.       body {  
    18.         height: 100%;  
    19.         margin: 0;  
    20.         padding: 0;  
    21.       }  
    22.       
    23.       
    24.     
    25.     
    26.     "map">
      
  •     
  •  
  •  
    0