Wicketstuff的GMarker的api点击事件不起作用。地图启动正常,显示标记,但标记的click事件未触发。我正在使用wicketstuff和apache wicket。
GMap map = new GMap("map", gMapHeaderContributor);
// API_KEY is passed in gMapHeaderContributor
map.setVisibilityAllowed(true);
FeedbackPanel feedback = new FeedbackPanel("feedback");
feedback.setOutputMarkupId(true);
add(feedback);
add(map);
GMarkerOptions marker= new GMarkerOptions(map, gLatLng);
marker.addListener(GEvent.click, new GEventHandler()
{
@Override
public void onEvent(AjaxRequestTarget target)
{
target.add(feedback);
}
});
map.addOverlay(marker);