Click here to Skip to main content
15,893,508 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using this code for google map in my website.
but it does not give location point.

XML
<script>
    function initialize() {
        var mapProp = {
            center: new google.maps.LatLng(18.511343628, 73.8531372),
            zoom: 11,

            mapTypeId: google.maps.MapTypeId.ROADMAP
        };
        var marker = new google.maps.Marker;
        var map = new google.maps.Map(document.getElementById("googleMap"), mapProp);
    }

    google.maps.event.addDomListener(window, 'load', initialize);
    mapProp.open(map, marker);

    window.onload = initialize;
</script>
Posted

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900