电子地图问题?
function onexportMapData(event){var string = event.args.substring("fmptest,".length);
document.getElementById("mynet_mapabc_cn").value = string;
document.getElementById("mynet_mapabc_zl").value = mapObj.getZoomLevel();//得到当前地图视野值
var center = mapObj.getCenterByLatLng();
document.getElementById("mynet_mapabc_clng").value = center.lng;//得到中心点X坐标
document.getElementById("mynet_mapabc_clat").value = center.lat;//得到中心点Y坐标
}
这个script得到地图坐标,下面是html中的代码
<script language="javascript" type="text/javascript" src="mapShow_files/js.aspx"></script>
<script type="text/javascript" src="mapShow_files/fmp.js"></script>
<script type="text/javascript" src="mapShow_files/ajaxsis.js"></script>
<script language="JavaScript" type="text/javaScript" src="mapShow_files/prototype.js"></script>
<link id="lfp" rel="stylesheet" type="text/css" href="mapShow_files/css.css" />
<script language="javascript" type="text/javascript" src="mapShow_files/abcHelper.js"></script>
<script language="javascript" type="text/javascript" src="mapShow_files/city_bus.js"></script>
<script language="javascript" type="text/javascript" src="mapShow_files/city_all.js"></script>
<script language="javascript" type="text/javascript" src="mapShow_files/city_u.js"></script>
<meta name="GENERATOR" content="MSHTML 8.00.6001.18876"/></head>
<body style="MARGIN-TOP: 0px; MARGIN-LEFT: 0px">
<input id="mynet_mapabc_zl" value="9" type="hidden" name="mynet_mapabc_zl" />
<input id="mynet_mapabc_cn" type="hidden" name="mynet_mapabc_cn" />
<input id="mynet_mapabc_clat" value="LQGXWPKRLLDLH" type="hidden" name="mynet_mapabc_clat" />
<input id="mynet_mapabc_clng" value="JIOMSSKSOMPHHH" type="hidden" name="mynet_mapabc_clng" />
我不知道怎么改坐标值。
望高手帮忙!谢谢!!O(∩_∩)O谢谢!!!