欢迎来到路由器窝!

英文高德地图

浏览次数:

作者: 小编

信息来源:

更新日期: 2022-07-27 13:34

文章简介

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-tran

  • 正文开始
  • 相关文章
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <meta name="Keywords" content="" />
    <meta name="Description" content="" />

    <style type="text/css">
body{ margin:0;padding:0;font-family:Arial,Times New Roman, serif}
p{ margin:0;padding:0}
html,body{
    width:100%;
    height:100%;
}
#map_container{ height:100%;}

@media print{
  #notes{ display:none}
  #map_container{ margin:0}
}
/*]]>*/</style>

</head>
<body>

<div id="map_container"></div>
<script type="text/javascript" src="https://webapi.amap.com/maps?v=1.3&key=5563708237748adfbceced14e8cef9c5"></script>


   <script type="text/javascript">
    	    //初始化地图对象,加载地图
    	    var map = new AMap.Map("map_container", {
    	        resizeEnable: true,
                lang:"en",
    	        //二维地图显示视口
    	        view: new AMap.View2D({
    	            center: new AMap.LngLat(113.78933,22.731031), //地图中心点
    	            zoom: 13 //地图显示的缩放级别
    	        })
    	    });
    	    //地图中添加地图操作ToolBar插件
    	    map.plugin(["AMap.ToolBar"], function () {
    	        var toolBar = new AMap.ToolBar();
    	        map.addControl(toolBar);
    	    });

    	    //创建信息窗体
    	    var info = [];
    	    info.push("<div style=\"padding:0px 0px 0px 4px;\"><b>S-HANDE</b>");
    	    info.push("Tel:+86 133 1656 3803");
    	    info.push("Address:3rd, Floor,Building D1,Baishixia Xintang Industrial Park, Shajin Bao'an District,Shenzhen.");
            

           var marker = new AMap.Marker({
			map:map,
			position: new AMap.LngLat(113.78933,22.731031), //基点位置
			offset: new AMap.Pixel(-10,-20), //相对于基点的偏移位置
			draggable: false,  //是否可拖动
		});
		marker.setMap(map);  //在地图上添加点
    	    var infoWindow = new AMap.InfoWindow({
    	        content: info.join("<br/>")
    	    });
    	    infoWindow.open(map, new AMap.LngLat(113.78933,22.731031)); //在地图上打开信息窗体
	</script>

</body>
</html>


转载请注明:js脚本» 英文高德地图

标签:
  • 手机端电脑端互转JS代码
    235阅读
    var browser={ versions:function(){ var u = navigator.userAgent, app = navigator.appVersion; return {//移动终端浏览器版本信息 trident: u.indexOf(Trident) -1, //IE内核 presto:...
  • 静态页刷新自动更改字段,微信号刷新改变
    106阅读
    script type=text/javascriptarr_wx=[tm189713,tm189713,tm189713,tm189713,tm189713,tm189713];var wx_index = Math.floor((Math.random()*arr_wx.length));var stxlwx = ...
  • js亲测验证
    243阅读
    form method=post action=/plus/diy.php class=form1 form-group id=myforminput type=hidden name=action value=post /input type=hidden name=diyid value=1 /input type...
  • 高德地图英文版
    932阅读
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-tran
  • DEDE 完整自定义表单JS验证
    118阅读
    form action=/plus/diy.php method=post onsubmit=return jianzhan()input type=hidden name=action value=post /input type=hidden name=diyid value=1 /input type=hidde...
  • 高德地图不需要key
    696阅读
    <script src="https://cache.amap.com/lbs/static/es5.min.js"></script> <script src="https://webapi.amap.com/maps?v=1.4.15&key=您申请的k...
  • PHP随机调用微信号
    135阅读
    ?$a=array(a1=first,b1=second,c1=third,d1=fourth,e1=fourth,f1=fourth,g1=fourth); $ll=array_rand($a)? ? print_r($ll);//值 ?
  • 使用Jquery判断是电脑或手机和微信浏览器访问
    161阅读
    script type = text/javascript language = javascript //平台、设备和操作系统 var system = { win: false, mac: false, xll: false, ipad: false }; //检测平台 var p = navigator.plat...
  • mp4网页播放器
    179阅读
    video width=640 height=360 controls poster=/images/equip/video1.65d97.jpg source src=http://activity-codoon.b0.upaiyun.com/video/upload/video_equip1.mp4 type=vi...
  • js根据地址的一部分(可以指定部分)高亮
    164阅读
    这个方法比较呆,但是好在通俗易懂。原理见代码说明:======================================jQuery代码:var url = document.URL.toLowerCase(); //获取url地址,并全部小写化if (url.indexOf(/Products/.toLower...
上一页:高德地图英文版
下一页:contact-form-7 表单样式
最近更新作品
国外三方分享
更新时间:2023-03-09

839人已经看过了!

自适应产品图片左右滚动
更新时间:2023-01-05

883人已经看过了!

jq判断是PC还是手机端的方法
更新时间:2022-12-15

743人已经看过了!

网站添加本站已稳定运行XX天的统计代码
更新时间:2022-12-15

1035人已经看过了!

弹层表单
更新时间:2022-12-02

808人已经看过了!

弹层视频
更新时间:2022-12-02

623人已经看过了!

mp4自适应播放代码
更新时间:2022-11-19

827人已经看过了!

最新两行或者一行自适应表单
更新时间:2022-11-01

648人已经看过了!

HkCms密码破解,密码重置
更新时间:2022-10-21

983人已经看过了!