I want to Show the locations of all landmarks on a table next to your map like the following sample next to my google map in my web page : I want to Show the locations of all landmarks which i clicked, on a table next to my map like the following sample [enter image description here][1]


  [1]: https://i.stack.imgur.com/Aacpb.png

i don't want to show all the details. i just want to show the latitude and longitude  of the marker which appear when i clicked a place on the map. here is my code. i want to show  latitude and longitude in a table instead of showing them in infoWindow. here is my code 

    <!DOCTYPE html>
<html>
<body>

    <div id="map" style="width:100%;height:500px;"></div>

    <script>
        function myMap() {
            var mapCanvas = document.getElementById("map");
            var myCenter = new google.maps.LatLng(6.8210555, 80.0405499);
            var mapOptions = { center: myCenter, zoom: 12 };
            var map = new google.maps.Map(mapCanvas, mapOptions);
            google.maps.event.addListener(map, 'click', function (event) {
                placeMarker(map, event.latLng);
            });
        }

        function placeMarker(map, location) {
            var marker = new google.maps.Marker({
                position: location,
                map: map, animation: google.maps.Animation.BOUNCE
            });
            var infowindow = new google.maps.InfoWindow({
                content: 'Latitude: ' + location.lat() + '<br>Longitude: ' + location.lng()
            });
            infowindow.open(map, marker);
        }
    </script>

    <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyC6ocynS4HxsKTgJu-8sq9uMqSBFafAhsg&callback=myMap"></script>

    <center>
        <h4>
            <a href="secondQuestion.html">Go to the answer of 4th Question</a>
        </h4>
    </center>
    <br />
    <center>
        <h4>
            <a href="HtmlPage1.html">Go to the answer of 3rd Question</a>
        </h4>
    </center>
</body>
</html>

how can i do that by editing this code.


