码迷,mamicode.com
首页 > 编程语言 > 详细

javascript:Bing Maps AJAX Control, Version 7.0

时间:2016-03-01 18:57:47      阅读:176      评论:0      收藏: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‘ style="position:relative; width:400px; height:400px;"></div>
   </body>
</html>
      

  

javascript:Bing Maps AJAX Control, Version 7.0

标签:

原文地址:http://www.cnblogs.com/geovindu/p/5231991.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!