function onOk() {
CloseWindow("ok");
}
function onCancel() {
CloseWindow("cancel");
}
var lat = Request['lat'];
var lon = Request['lon'];
if (lat == "null" || lat == null) {
lat = 31.23515;
lon = 121.523329;
}
// 百度地图API功能
var map = new BMap.Map("allmap", {
enableMapClick: false
});
var point = new BMap.Point(lon, lat);
map.centerAndZoom(new BMap.Point(lon, lat), 14);
var marker1 = new BMap.Marker(point); // 创建标注
map.addOverlay(marker1); // 将标注添加到地图中
</script>
ondestroy: function (action) {
alert(action);//action='undefined'
if (action == "ok") {
var iframe = this.getIFrameEl();
var data = iframe.contentWindow.GetData();
data = mini.clone(data); //必须
if (data) {
btnEdit.setValue(data.marker);
btnEdit.setText(data.marker);
}
}