<!--看了百度地图API,有些东西没有给出例子,与时我就仿照marker的示例,做了一个label的示例-->
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><!--默认的文件,并设定文字编码-->
<?php
//$jingwei="new BMap.Point($longitude,$latitude);";//与其他联动时使用的
$jingwei="new BMap.Point(116.19926,39.72372);";// 给定坐标时用的
?>
<title>环评项目定位</title>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=1.3"></script> <!--引用百度地图API-->
<script type="text/javascript" src="http://dev.baidu.com/wiki/static/map/API/examples/script/convertor.js"></script> <!--引用坐标转换脚本-->
</head>
<body>
<div style="width:700px;height:250px;margin-left: auto;margin-right: auto;border:1px solid gray"id="container">
百度地图API之添加标签及链接
最新推荐文章于 2023-10-13 11:15:56 发布