Well I just think that if you are using a gmap which is supposed to be
static, and never can be anything else.. Then it does not make much
sense to add the listener stuff.
But as someone wrote I could just roll a label with an attribute modifier...
Martin Funk wrote:
Nino Saturnino Martinez Vazquez Wael wrote:
Yeah I know I did something similar for the openlayers contrib.. But
I wonder if you could provide a constructor which turns it all off?
What? More constructors? I was just about on the path to less
constructors!
I just deprecated the constructors that take the GOverlays as a
parameter.
Sounds like a good idea...
(Sorta inspired by the dropping of the wicket 2.0 constructor change)
If the dragging of the map needs to be turned of, a
'map.setDraggingEnabled(false);' needs to be added.
Yeah I've already done so.
mf
Martin Funk wrote:
Nino Saturnino Martinez Vazquez Wael wrote:
Hi Martin
I get the wicket ajax debug window.. And (slice from the simple
page below)
<script type="text/javascript" ><!--/*--><![CDATA[/*><!--*/
Wicket.Event.add(window, "domready", function() { new
WicketMap2('map1');
Wicket.maps['map1'].overlayListenerCallbackUrl =
'?wicket:interface=:0:map::IActivePageBehaviorListener:2:&wicket:ignoreIfNotActive=true';
--------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Wicket.maps['map1'].setCenter(new GLatLng(52.37649, 4.888573, false));
Wicket.maps['map1'].setZoom(13);
Wicket.maps['map1'].setDraggingEnabled(true);
Wicket.maps['map1'].setDoubleClickZoomEnabled(false);
Wicket.maps['map1'].setScrollWheelZoomEnabled(false);
Wicket.maps['map1'].setMapType(G_NORMAL_MAP);
;});
/*-->]]>*/</script>
<script type="text/javascript"
src="resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug.js"></script>
<script type="text/javascript"
id="wicket-ajax-debug-enable"><!--/*--><![CDATA[/*><!--*/
wicketAjaxDebugEnable=true;
/*-->]]>*/</script>
Im not sure if gets called every time of it's just because it's
ready for it?
Well, ok, it looks a little like ajax, but it isn't.
On the server side there always is a OverlayListener added to the
GMap2, with the only purpose of being a fixed callback hook. It
doesn't initiate anything, on the client side it only shows up as
that String assignment to the variable 'overlayListenerCallbackUrl'
of the GMap2.
So the String above is nothing more than a property of the GMap2.
This property is used by GOverlays, that might be added to the map
later on. If they fire an event that triggers a call to the server,
the property is used as a callbackUrl to the GOverlayListener on the
server side. The GOverlayListener then has to wire through to the
right GOverlay.
mf
Martin Funk wrote:
Nino Saturnino Martinez Vazquez Wael wrote:
I know, im just too lazy if gmap2 already supports it:)
were in the 'simple' example do you see ajax?
[EMAIL PROTECTED] wrote:
I'm not sure if GMap2 has that option, but if not, you could
just put plain GMap code and provide the location with some
hidden Label or a small component to do that.
On Oct 17, 2008 5:22pm, Nino Saturnino Martinez Vazquez Wael
<[EMAIL PROTECTED]> wrote:
Are there a way to avoid the GMAP2 contrib to add ajax
listeners, thus
making it non ajax? I have some pages that only should display a
map, nonclickable non moveable etc.
--
-Wicket for love
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
-Wicket for love
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]