you are aware of gmap2-examples?

http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-gmap2

once there look at the 'Listen Examples'

mf




2010/5/11 dleeper <[email protected]>

>
> This is what I am currently doing.
>
> zoomChangedListener = new ZoomChangedListener();
>                add(zoomChangedListener);
>
>                map.add(new HeaderContributor(new IHeaderContributor() {
>                        private static final long serialVersionUID = 1L;
>
>                        public void renderHead(IHeaderResponse response) {
>
>
> response.renderOnDomReadyJavascript(zoomChangedListener.getJSinit().toString());
>                        }
>                }));
>
> public class ZoomChangedListener extends AbstractDefaultAjaxBehavior
>        {
>                private static final long serialVersionUID = 1L;
>
>                @Override
>                protected void respond(AjaxRequestTarget target)
>                {
>                        Request request = RequestCycle.get().getRequest();
>
>                        String zoom = request.getParameter("zoom");
>
>                        System.out.println( "NEW ZOOM: " + zoom );
>
>                }
>
>                public Object getJSinit()
>                {
>                        return map.getJSinvoke("addListener('zoom_changed',
> '" +
> this.getCallbackUrl()
>                                        + "')");
>                }
>        }
>
> Unfortunately the respond is not being called.  Not sure why.
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/GMap2-and-zoom-changed-tp2173428p2173506.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to