Chào mừng đến với Diễn đàn lập trình - Cộng đồng lập trình.
Kết quả 1 đến 4 của 4
  1. #1

  2. #2
    Ngày tham gia
    Sep 2015
    Bài viết
    0
    Cảm ơn bạn.Để mình thử xem sao!

  3. #3
    Ngày tham gia
    Sep 2015
    Bài viết
    0
    Mã:
    <html>    <head>        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">        <title>JSP Page</title>        <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script>            <script type="text/javascript">            function codeAddress() {            var address = document.getElementById("address").value;            if (geocoder) {            geocoder.geocode( { 'address': address}, function(results, status) {            if (status == google.maps.GeocoderStatus.OK) {            map.setCenter(results[0].geometry.location);            } else {            alert("Geocode was not successful for the following reason: " + status);            }            });            }            }            function initialize() {            geocoder = new google.maps.Geocoder();            var latlng = new google.maps.LatLng(10.03,105.78);            var myOptions = {            zoom: 8,            center: latlng,            mapTypeId: google.maps.MapTypeId.ROADMAP            }            map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);            var myLatLng = new google.maps.LatLng(21.043080670529605, 105.77565103769302);            var my_maker = new google.maps.Marker({            position: myLatLng,            map: map,            title:"My House"            });            }            </script>        <style type="text/css">            .khun            {                 width:640px;                 height:760px;                 padding:1px 1px 1px 1px;                 margin-left:auto;                 margin-right:auto;                 margin-top:6px;                            }        </style>    </head>    <body onload="initialize()">          <div class="khun">            <input id="address" type="textbox" value="Cần Thơ"/>            <input type="button" value="Encode" onclick="codeAddress()"/>            <div id="map_canvas" style="width:640px; height:500px"></div>        </div>    </body></html>

  4. #4
    Ngày tham gia
    Sep 2015
    Bài viết
    0
    Y(:d y(:d y(:d y(:d

 

 

Quyền viết bài

  • Bạn Không thể gửi Chủ đề mới
  • Bạn Không thể Gửi trả lời
  • Bạn Không thể Gửi file đính kèm
  • Bạn Không thể Sửa bài viết của mình
  •