直接调用就可以,将红色部分替换成你的指定图片的地址就ok了,如果还有什么请发邮件[email protected]<script type="text/javascript"> var maplet = null; function initMap(){ maplet = new Maplet("mapbar"); maplet.centerAndZoom(new MPoint(116.38749,39.90515), 8); maplet.addControl(new MStandardControl());
var er = new MMarker( new MPoint(116.38749,39.90515), new MIcon("E:\\maptesthtml\\aa\\11.bmp",32,32), //new MInfoWindow("<b style='margin-left:3px'>$blog[subject]</b>", "<span style='margin-left:3px'>$blog[address]</span> ") new MInfoWindow("<p>天安门</p><div style='width:220px;height:150px;border:1px solid gray;overflow-y:auto'><a href='http://www.mapbar.com' target='_blank'><img src='http://open.mapbar.com/images/logo_api.png'style='float:left;border:none;'/></a><div>天安门位于中华人民共和国首都北京市区中心,面临长安街。</div></div>") ); document.getElementById("E:\\maptesthtml\\aa\\11.bmp") var win1 = new MInfoWindow maplet.addOverlay(er); er.openInfoWindow(); } </script>
http://www.eryi.org/SearchEngines/google-china-maps.html
http://download.csdn.net/source/200558
http://union.mapbar.com/apidoc/
应该是吧 自己开发一个难度太大了
自己写的话看看gis吧调用方法看看前面几楼
先熟习一下google map的api
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Google 地图 JavaScript API 示例: 简单的地图</title>
<script src="http://ditu.google.cn/maps?file=api&v=2&key=ABQIAAAAzr2EBOXUKnm_jVnk0OJI7xSosDVG8KKPE1-m51RBrvYughuyMxQ-i1QfUnH94QxWIa6N4U6MouMmBA&hl=zh-CN"
type="text/javascript"></script>
<script type="text/javascript"> function initialize() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map_canvas"));
//维度,经度
map.setCenter(new GLatLng(39.917, 116.397), 1);
}
} </script>
</head>
<body onload="initialize()" onunload="GUnload()">
<div id="map_canvas" style="width: 500px; height: 300px"></div>
</body>
</html>
http://code.google.com/intl/zh-CN/apis/maps/documentation/reference.html
直接调用就可以,将红色部分替换成你的指定图片的地址就ok了,如果还有什么请发邮件[email protected]<script type="text/javascript">
var maplet = null;
function initMap(){
maplet = new Maplet("mapbar");
maplet.centerAndZoom(new MPoint(116.38749,39.90515), 8);
maplet.addControl(new MStandardControl());
var er = new MMarker(
new MPoint(116.38749,39.90515),
new MIcon("E:\\maptesthtml\\aa\\11.bmp",32,32),
//new MInfoWindow("<b style='margin-left:3px'>$blog[subject]</b>", "<span style='margin-left:3px'>$blog[address]</span> ")
new MInfoWindow("<p>天安门</p><div style='width:220px;height:150px;border:1px solid gray;overflow-y:auto'><a href='http://www.mapbar.com' target='_blank'><img src='http://open.mapbar.com/images/logo_api.png'style='float:left;border:none;'/></a><div>天安门位于中华人民共和国首都北京市区中心,面临长安街。</div></div>")
);
document.getElementById("E:\\maptesthtml\\aa\\11.bmp")
var win1 = new MInfoWindow
maplet.addOverlay(er);
er.openInfoWindow();
}
</script>