i have found solution, addListener as follow:
marker.addListener(GEvent.dragend, new GEventHandler()
{
private static final long serialVersionUID = 1L;
@Override
public void onEvent(AjaxRequestTarget target)
{
target.addComponent(label);
}
});
today, i want to upgrade my application from wicket-1.3.7 to wikcet-1.4.1,
> i update wicket's core jar and wicketstuff's jar(build from lastest code),
> but i found that gmap2's GMarkerDragendListener class not found error.
>
> here is my code using by GMarkerDragendListener class:
> gMarker.addBehavior(new GMarkerDragendListener() {
>
> @Override
> protected void onDragend(AjaxRequestTarget target) {
> lat = gMarker.getLagLng().getLat();
> lng = gMarker.getLagLng().getLng();
>
> target.addComponent(lblGlatLng);
>
> GInfoWindow gInfoWindow = gMap.getInfoWindow();
> gInfoWindow.open(gMarker, new
> ShopAddressConfirmPanel(editShopAddressForm));
> }
> });
>
>
>
>