自己编写一个WindowInfo
在其中添加你要添加的按钮,把这个按钮做成表单提交就可以了
function ShowClickMarker(marker) {
GEvent.addListener
(marker, "click",
function (point) {
var inputForm = document.createElement("form");
if (marker.getTitle()) {
inputForm.id = 'marker_' + marker.getTitle();
}
else {
inputForm.id = 'marker_point';
}
inputForm.setAttribute("action", "#");
inputForm.onsubmit = function () {
Ext.getCmp('map_google').getMap().closeInfoWindow();
storeMarker(this.found.value);
return false;
};
var point = marker.getLatLng();
if (point) {
// Lat纬度;Lng经度
var n = point.lng();
var e = point.lat();