欢迎来到路由器窝!

高德地图英文版

浏览次数:

作者: 小编

信息来源:

更新日期: 2022-07-03 23:28

文章简介

<!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 ******");    
   	info.push("Address:************");    
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获取url并且赋值DIV
下一页:英文高德地图
最近更新作品
国外三方分享
更新时间: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人已经看过了!