javascript:Bing Maps AJAX Control, Version 7.0

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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‘ style="position:relative; width:400px; height:400px;"></div>
   </body>
</html>
      

  

以上是关于javascript:Bing Maps AJAX Control, Version 7.0的主要内容,如果未能解决你的问题,请参考以下文章

通过 AJAX 加载 Google Maps API,控制台错误

对 Google Maps API 的 AJAX 请求停止工作

Google Maps V3:通过 AJAX 加载信息窗口内容

JavaScript VEMap.EnableTouch:触摸支持Bing Maps AJAX mapcontrol(例如IPhone webapps)

CSS Bing Maps AJAX控件7.0:更好看的NavBar(仪表板)和Map.setView填充

Google Maps API 仅在使用 AJAX 时抛出“Uncaught ReferenceError: google is not defined”