Google map

    0

    0

    HTML recipes

    Google map centered on one point

    <div id="gmap" style="width:100%;height:400px;"></div>
    
    <script>
    function myMap() {
    var mapProp= {
    B B center:new google.maps.LatLng(51.508742,-0.120850),
    B B zoom:5,
    };
    var map = new google.maps.Map(document.getElementById("gmap"),mapProp);
    }
    </script>
    
    <script src="https://maps.googleapis.com/maps/api/js?key=GOOGLE_KEY&callback=myMap"></script>
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.