<script src="http://ditu.google.cn/maps/api/js?sensor=false"></script>
  function initialize() {
            var myLatlng = new google.maps.LatLng( $("#lanlat").val().split(',')[0],$("#lanlat").val().split(',')[1]);
            var myOptions = {
                zoom: 13,
                center: myLatlng,
                mapTypeId: google.maps.MapTypeId.ROADMAP
            }
            var map = new google.maps.Map(document.getElementById("maps"), myOptions);
        }
        google.maps.event.addDomListener(window, "load", initialize);
      
      

posted on 2015-12-10 16:24  村夫哥哥  阅读(78)  评论(0编辑  收藏  举报