Apache wicketStuff-GMap / GMarker单击操作不起作用

时间:2019-01-17 18:45:12

标签: apache wicket wicketstuff

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);

0 个答案:

没有答案