你的位置:首页 > Java教程

[Java教程]javascript:Bing Maps AJAX Control, Version 7.0


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>  <head>   <title>Map with valid credentials</title>   <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>   <script type="text/javascript" src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0&mkt=zh-HK"></script>   <script type="text/javascript">   //参考网址:   /*   	https://msdn.microsoft.com/en-us/library/gg427600.aspx 显示语言类型		https://www.microsoft.com/maps/choose-your-bing-maps-API.aspx		http://microsoft.github.io/windows/		http://cn.bing.com/dev/en-us/dev-center		https://code.msdn.microsoft.com/site/search?f%5B0%5D.Type=SearchText&f%5B0%5D.Value=bing%20maps		https://www.bingmapsportal.com/ISDK/AjaxV7#CreateMap1   */   var map = null;         function getMap()   {     map = new Microsoft.Maps.Map(document.getElementById('myMap'), {credentials: 'your key'});   }     </script>  </head>  <body onload="getMap();">   <div id='myMap' ></div>  </body></html>