欢迎进入重庆中旺渝科技有限公司官网?
咨询热线?/span> 13896551237

联系我们

    联系我们 contact

    ?话:13896551237

    ?址:重庆市高新区石板镇黄家堰村7?64?/p>

    联系我们

    当前位置?/span> 首页 > 联系我们

    联系我们

    重庆中旺渝科技有限公司

    电话?3896551237

    厂址:重庆市高新区石板镇黄家堰村7?64?/span>

    百度地图API自定义地?/title> <!--引用百度地图API--> <style type="text/css"> html,body{margin:0;padding:0;} .iw_poi_title {color:#CC5522;font-size:14px;font-weight:bold;overflow:hidden;padding-right:13px;white-space:nowrap} .iw_poi_content {font:12px arial,sans-serif;overflow:visible;padding-top:4px;white-space:-moz-pre-wrap;word-wrap:break-word} </style> <script type="text/javascript" src="//api.map.baidu.com/api?key=&v=1.1&services=true"></script> <meta http-equiv="Cache-Control" content="no-transform" /> <script>var V_PATH="/";window.onerror=function(){ return true; };</script> </head> <body> <!--百度地图容器--> <div style="width:697px;height:400px;border:#ccc solid 1px;" id="dituContent"></div> <script> (function(){ var canonicalURL, curProtocol; //Get the <link> tag var x=document.getElementsByTagName("link"); //Find the last canonical URL if(x.length > 0){ for (i=0;i<x.length;i++){ if(x[i].rel.toLowerCase() == 'canonical' && x[i].href){ canonicalURL=x[i].href; } } } //Get protocol if (!canonicalURL){ curProtocol = window.location.protocol.split(':')[0]; } else{ curProtocol = canonicalURL.split(':')[0]; } //Get current URL if the canonical URL does not exist if (!canonicalURL) canonicalURL = window.location.href; //Assign script content. Replace current URL with the canonical URL !function(){var e=/([http|https]:\/\/[a-zA-Z0-9\_\.]+\.baidu\.com)/gi,r=canonicalURL,t=document.referrer;if(!e.test(r)){var n=(String(curProtocol).toLowerCase() === 'https')?"https://sp0.baidu.com/9_Q4simg2RQJ8t7jm9iCKT-xh_/s.gif":"//api.share.baidu.com/s.gif";t?(n+="?r="+encodeURIComponent(document.referrer),r&&(n+="&l="+r)):r&&(n+="?l="+r);var i=new Image;i.src=n}}(window);})(); </script> </body> <script type="text/javascript"> //创建和初始化地图函数? function initMap(){ createMap();//创建地图 setMapEvent();//设置地图事件 addMapControl();//向地图添加控? } //创建地图函数? function createMap(){ var map = new BMap.Map("dituContent");//在百度地图容器中创建一个地? var point = new BMap.Point(106.372895,29.443734);//定义一个中心点坐标 map.centerAndZoom(point,17);//设定地图的中心点和坐标并将地图显示在地图容器? window.map = map;//将map变量存储在全局 } //地图事件设置函数? function setMapEvent(){ map.enableDragging();//启用地图拖拽事件,默认启?可不? map.enableScrollWheelZoom();//启用地图滚轮放大缩小 map.enableDoubleClickZoom();//启用鼠标双击放大,默认启?可不? map.enableKeyboard();//启用键盘上下左右键移动地? } //地图控件添加函数? function addMapControl(){ //向地图中添加缩放控件 var ctrl_nav = new BMap.NavigationControl({anchor:BMAP_ANCHOR_TOP_LEFT,type:BMAP_NAVIGATION_CONTROL_LARGE}); map.addControl(ctrl_nav); //向地图中添加缩略图控? var ctrl_ove = new BMap.OverviewMapControl({anchor:BMAP_ANCHOR_BOTTOM_RIGHT,isOpen:1}); map.addControl(ctrl_ove); //向地图中添加比例尺控? var ctrl_sca = new BMap.ScaleControl({anchor:BMAP_ANCHOR_BOTTOM_LEFT}); map.addControl(ctrl_sca); } initMap();//创建和初始化地图 </script> </html> </div> </div> </div> </div> </div> </div> <div id="v6q4u82vsz" class="footer-box"> <div id="v6q4u82vsz" class="container"> <div id="v6q4u82vsz" class="footer-info"> <a href="//cms.cqbaidu.com" title="网站建设 " target="_blank">网站建设</a><span>-技术支持:</span> <a href="//www.cqbaidu.com" title="百润信息" target="_blank">百润信息</a> 备案号:<a href="//beian.miit.gov.cn/" " target="_blank" style="color:#e6e6e6;">渝ICP?0007296?1 </a> </div> </div> </div> <div id="v6q4u82vsz" class="right-box"> <ul> <li> <a href="/"><img src="/Theme/I046/images/home-icon.png" alt="" /></a></li> <li> <a href="//wpa.qq.com/msgrd?v=3&uin=544712404&site=qq&menu=yes" target="_blank"><img src="/Theme/I046/images/qq-icon.png" alt="" /></a></li> <li> <img src="/Theme/I046/images/wechat-icon.png" alt="" /><p class="wechat"><img src="/Files/Image/QQ图片20180326155805.png?2018032817153639" alt="" /></p></li> </ul> <p class="goto-top"><img src="/Theme/I046/images/goto-top.png" alt="" /></p> </div> <script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "//hm.baidu.com/hm.js?25e51918f68b9a791e16efe17721e1d2"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> <script src="/Theme/I046/js/EventUtil.js"></script> <script type="text/javascript" src="/Theme/I046/js/focus.js"></script> <script src="/Theme/I046/js/index.js"></script> <script> (function(){ var canonicalURL, curProtocol; //Get the <link> tag var x=document.getElementsByTagName("link"); //Find the last canonical URL if(x.length > 0){ for (i=0;i<x.length;i++){ if(x[i].rel.toLowerCase() == 'canonical' && x[i].href){ canonicalURL=x[i].href; } } } //Get protocol if (!canonicalURL){ curProtocol = window.location.protocol.split(':')[0]; } else{ curProtocol = canonicalURL.split(':')[0]; } //Get current URL if the canonical URL does not exist if (!canonicalURL) canonicalURL = window.location.href; //Assign script content. Replace current URL with the canonical URL !function(){var e=/([http|https]:\/\/[a-zA-Z0-9\_\.]+\.baidu\.com)/gi,r=canonicalURL,t=document.referrer;if(!e.test(r)){var n=(String(curProtocol).toLowerCase() === 'https')?"https://sp0.baidu.com/9_Q4simg2RQJ8t7jm9iCKT-xh_/s.gif":"//api.share.baidu.com/s.gif";t?(n+="?r="+encodeURIComponent(document.referrer),r&&(n+="&l="+r)):r&&(n+="?l="+r);var i=new Image;i.src=n}}(window);})(); </script> </body> </html>