Hi,
I am unsing GMap2 from WicketStuff
(http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-gmap2)
and need to display a map in a pop-up dialog. I use JQuery for the
dialog. When the Dialog comes up, the map's viewport is offset in
relation to the window and only the cross-section of the map's position
(starting outside the dialog window) and the actual pop-up window is
being drawn. For example, assume the map starts at absolute position 0,0
with as size of 600,400 and the dialog is shown at absolute position
300,200 with size 600,500: Only the region (300,200 -> 600,400) is drawn.
This is probably because the dialog is not shown when the GMap2
javascript calculates its position, so I need to call the
"checkResize()" method on
http://code.google.com/apis/maps/documentation/reference.html#GMap2 that
is created by the WicketStuff control. Problem is, I can't get to the
Javascript object underlying the wicketstuff representation. I'm trying
to do something like:
myDialog.setOpenEvent(JsScopeUiEvent
.quickScope(
"alert('fixing map size');\n" +
" $('#mapObjectId').checkResize();\n"
);
How can I get the proper "mapObjectId" value?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org