<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Gwt-Ext and Google Maps &#8211; II (handle click)</title>
	<atom:link href="http://abhijeetmaharana.com/blog/2008/05/01/gwt-ext-and-google-maps-ii-handle-click/feed/" rel="self" type="application/rss+xml" />
	<link>http://abhijeetmaharana.com/blog/2008/05/01/gwt-ext-and-google-maps-ii-handle-click/</link>
	<description></description>
	<lastBuildDate>Thu, 04 Mar 2010 16:39:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ali</title>
		<link>http://abhijeetmaharana.com/blog/2008/05/01/gwt-ext-and-google-maps-ii-handle-click/comment-page-1/#comment-14469</link>
		<dc:creator>Ali</dc:creator>
		<pubDate>Thu, 25 Feb 2010 19:23:46 +0000</pubDate>
		<guid isPermaLink="false">http://abhijeetmaharana.com/blog/?p=43#comment-14469</guid>
		<description>I am using GoogleMarker in my application. First problem that I faced was that the GoogleMarker is not draggable. In order to make it draggable, I created another class MyGoogleMarker extending GoogleMarker and added the following function.

	public native void enableDragging() /*-{
		var marker = this.@com.gwtext.client.core.JsObject::getJsObj()();
	    marker.setDraggable(true);
	}-*/;

It solved the problem. Now, the marker is draggable. Now the next issue is that I want to track the dragging marker. So I would need a listener so added the following function to MyGoogleMarker.

public native void addEventListener(String event, MyEventHandler listener) /*-{
    var marker = this.@com.gwtext.client.widgets.map.Marker::toGoogle()();
    marker.addListener(event, function(llp) {
	            listener.@com.findmeacab.project.client.MyEventHandler::execute(Lcom/google/gwt/core/client/JavaScriptObject;)(llp);
	      	});
	}-*/;

Where MyEventHandler is the following interface. 
package com.findmeacab.project.client;
import com.google.gwt.core.client.JavaScriptObject;
public interface MyEventHandler {
	public void execute(JavaScriptObject arg);
}
I do not know where I am making mistake the event never triggers when I make the call.

MyEventHandler myEventHandler = new MyEventHandler() {
	@Override
	public void execute(JavaScriptObject arg) {
		System.out.println(&quot;Drag End&quot;);
        }
};
marker.addMyEventListener(&quot;dragend&quot;, myEventHandler);

Any suggestion will be highly appreciated

-Ali</description>
		<content:encoded><![CDATA[<p>I am using GoogleMarker in my application. First problem that I faced was that the GoogleMarker is not draggable. In order to make it draggable, I created another class MyGoogleMarker extending GoogleMarker and added the following function.</p>
<p>	public native void enableDragging() /*-{<br />
		var marker = <a href="mailto:this.@com.gwtext.client.core.JsObject">this.@com.gwtext.client.core.JsObject</a>::getJsObj()();<br />
	    marker.setDraggable(true);<br />
	}-*/;</p>
<p>It solved the problem. Now, the marker is draggable. Now the next issue is that I want to track the dragging marker. So I would need a listener so added the following function to MyGoogleMarker.</p>
<p>public native void addEventListener(String event, MyEventHandler listener) /*-{<br />
    var marker = <a href="mailto:this.@com.gwtext.client.widgets.map.Marker">this.@com.gwtext.client.widgets.map.Marker</a>::toGoogle()();<br />
    marker.addListener(event, function(llp) {<br />
	            <a href="mailto:listener.@com.findmeacab.project.client.MyEventHandler">listener.@com.findmeacab.project.client.MyEventHandler</a>::execute(Lcom/google/gwt/core/client/JavaScriptObject;)(llp);<br />
	      	});<br />
	}-*/;</p>
<p>Where MyEventHandler is the following interface.<br />
package com.findmeacab.project.client;<br />
import com.google.gwt.core.client.JavaScriptObject;<br />
public interface MyEventHandler {<br />
	public void execute(JavaScriptObject arg);<br />
}<br />
I do not know where I am making mistake the event never triggers when I make the call.</p>
<p>MyEventHandler myEventHandler = new MyEventHandler() {<br />
	@Override<br />
	public void execute(JavaScriptObject arg) {<br />
		System.out.println(&#8220;Drag End&#8221;);<br />
        }<br />
};<br />
marker.addMyEventListener(&#8220;dragend&#8221;, myEventHandler);</p>
<p>Any suggestion will be highly appreciated</p>
<p>-Ali</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: loopzy</title>
		<link>http://abhijeetmaharana.com/blog/2008/05/01/gwt-ext-and-google-maps-ii-handle-click/comment-page-1/#comment-13064</link>
		<dc:creator>loopzy</dc:creator>
		<pubDate>Thu, 03 Dec 2009 15:11:24 +0000</pubDate>
		<guid isPermaLink="false">http://abhijeetmaharana.com/blog/?p=43#comment-13064</guid>
		<description>Great read! thx</description>
		<content:encoded><![CDATA[<p>Great read! thx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abhijeet Maharana</title>
		<link>http://abhijeetmaharana.com/blog/2008/05/01/gwt-ext-and-google-maps-ii-handle-click/comment-page-1/#comment-8656</link>
		<dc:creator>Abhijeet Maharana</dc:creator>
		<pubDate>Wed, 08 Jul 2009 18:19:51 +0000</pubDate>
		<guid isPermaLink="false">http://abhijeetmaharana.com/blog/?p=43#comment-8656</guid>
		<description>Thanks Afonso ... makes me feel good :)
Have a good day!</description>
		<content:encoded><![CDATA[<p>Thanks Afonso &#8230; makes me feel good <img src='http://abhijeetmaharana.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Have a good day!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Afonso</title>
		<link>http://abhijeetmaharana.com/blog/2008/05/01/gwt-ext-and-google-maps-ii-handle-click/comment-page-1/#comment-8620</link>
		<dc:creator>Afonso</dc:creator>
		<pubDate>Mon, 06 Jul 2009 16:32:34 +0000</pubDate>
		<guid isPermaLink="false">http://abhijeetmaharana.com/blog/?p=43#comment-8620</guid>
		<description>Man this is great.You saved a LOT of people hours and hours of really big trouble. Very good tutorial, works and it is well explained. Thank you so much.</description>
		<content:encoded><![CDATA[<p>Man this is great.You saved a LOT of people hours and hours of really big trouble. Very good tutorial, works and it is well explained. Thank you so much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abhijeet Maharana</title>
		<link>http://abhijeetmaharana.com/blog/2008/05/01/gwt-ext-and-google-maps-ii-handle-click/comment-page-1/#comment-4116</link>
		<dc:creator>Abhijeet Maharana</dc:creator>
		<pubDate>Thu, 15 Jan 2009 08:27:12 +0000</pubDate>
		<guid isPermaLink="false">http://abhijeetmaharana.com/blog/?p=43#comment-4116</guid>
		<description>Hi Gregory,
Thanks for dropping by. This should help: http://gwt-ext.com/forum/viewtopic.php?f=7&amp;t=1727&amp;p=6003&amp;hilit=marker+listener</description>
		<content:encoded><![CDATA[<p>Hi Gregory,<br />
Thanks for dropping by. This should help: <a href="http://gwt-ext.com/forum/viewtopic.php?f=7&#038;t=1727&#038;p=6003&#038;hilit=marker+listener" rel="nofollow" class="extlink">http://gwt-ext.com/forum/viewtopic.php?f=7&#038;t=1727&#038;p=6003&#038;hilit=marker+listener</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gregory Mace</title>
		<link>http://abhijeetmaharana.com/blog/2008/05/01/gwt-ext-and-google-maps-ii-handle-click/comment-page-1/#comment-4115</link>
		<dc:creator>Gregory Mace</dc:creator>
		<pubDate>Thu, 15 Jan 2009 07:23:57 +0000</pubDate>
		<guid isPermaLink="false">http://abhijeetmaharana.com/blog/?p=43#comment-4115</guid>
		<description>very nicely done. How would you add a listener for a Marker as well?</description>
		<content:encoded><![CDATA[<p>very nicely done. How would you add a listener for a Marker as well?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Travelbanana dev &#187; Blog Archive &#187; Gwt-ext, Kartor klara</title>
		<link>http://abhijeetmaharana.com/blog/2008/05/01/gwt-ext-and-google-maps-ii-handle-click/comment-page-1/#comment-569</link>
		<dc:creator>Travelbanana dev &#187; Blog Archive &#187; Gwt-ext, Kartor klara</dc:creator>
		<pubDate>Tue, 20 May 2008 16:18:35 +0000</pubDate>
		<guid isPermaLink="false">http://abhijeetmaharana.com/blog/?p=43#comment-569</guid>
		<description>[...] Idag har vi fixat så att man kan söka efter platser som laddas dynamiskt samt trycka på kartan och få fram koordinater (vilket ska användas då man lägger till nya platser i Wikin). Precis som innan använder vi oss av Gwt-ext. Detta ledde till ett litet problem då viss funktionalitet saknades och vi blev tvungna att ladda över lite funktioner i klassen MapPanel.java. Med hjälp av en tutorial lyckades vi lösa problemet, http://abhijeetmaharana.com/blog/2008/05/01/gwt-ext-and-google-maps-ii-handle-click/ [...]</description>
		<content:encoded><![CDATA[<p>[...] Idag har vi fixat så att man kan söka efter platser som laddas dynamiskt samt trycka på kartan och få fram koordinater (vilket ska användas då man lägger till nya platser i Wikin). Precis som innan använder vi oss av Gwt-ext. Detta ledde till ett litet problem då viss funktionalitet saknades och vi blev tvungna att ladda över lite funktioner i klassen MapPanel.java. Med hjälp av en tutorial lyckades vi lösa problemet, <a href="http://abhijeetmaharana.com/blog/2008/05/01/gwt-ext-and-google-maps-ii-handle-click/" rel="nofollow">http://abhijeetmaharana.com/blog/2008/05/01/gwt-ext-and-google-maps-ii-handle-click/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Weekly GWT Links For 5/3/08 &#124; GWT Site</title>
		<link>http://abhijeetmaharana.com/blog/2008/05/01/gwt-ext-and-google-maps-ii-handle-click/comment-page-1/#comment-536</link>
		<dc:creator>Weekly GWT Links For 5/3/08 &#124; GWT Site</dc:creator>
		<pubDate>Sun, 04 May 2008 01:02:35 +0000</pubDate>
		<guid isPermaLink="false">http://abhijeetmaharana.com/blog/?p=43#comment-536</guid>
		<description>[...] Gwt-Ext and Google Maps II (handle click) Abhijeet Maharana has written another blog post on using Gwt-Ext&#8217;s Google Maps functionality. [...]</description>
		<content:encoded><![CDATA[<p>[...] Gwt-Ext and Google Maps II (handle click) Abhijeet Maharana has written another blog post on using Gwt-Ext&#8217;s Google Maps functionality. [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
