I had the same problem with ModalWindow and here's what I've done to handle
this problem:


public class MyGmap extends GMap2 {
        /** serialVersionUID. */
        private static final long serialVersionUID = 1L;

        public MyGmap(final String varId, final String varGMapKey) {
            super(varId, varGMapKey);
        }

        private String getJScheckResize() {
            return getJSinvoke("map.checkResize()");
        }

        public void checkResize() {

            if (AjaxRequestTarget.get() != null && findPage() != null) {
               
AjaxRequestTarget.get().appendJavaScript(getJScheckResize());
            }
        }

    }

Maybe it can be useful to add this code into the gmap2 project. How can this
be done?


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/GMap2-in-a-Wiquery-Dialog-tp3627392p4102386.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to