日期:2014-05-16 浏览次数:20559 次
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&language=en"></script> <script type="text/javascript"><!-- var map, point, marker, txt; point = new google.maps.LatLng(<?=$point?>); var myOptions = { zoom: 16, center: point, mapTypeControl: false, mapTypeId: google.maps.MapTypeId.ROADMAP } map = new google.maps.Map(document.getElementById("map"), myOptions); marker = new google.maps.Marker({map: map, position: point}); //--> </script>
<!--google map begins--> <script type="text/javascript"> var bigMap, position; position= new google.maps.LatLng(51.51170390644864,-0.130020724536962); //这里开始会出错,因为父页面没有载入api var OptionS = { zoom: 18, center: position, mapTypeControl: false, mapTypeId: google.maps.MapTypeId.ROADMAP }; bigMap = new google.maps.Map(document.getElementById("canvas"), OptionS); </script> <div id="map"><iframe id="map" marginheight="0" border="0" src="/ukinfo/skin/mapframe.php?point=51.51170390644864,-0.130020724536962" frameborder="no" marginwidth="0" scrolling="no"></iframe></div>