<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Dario,<div><br></div><div>I've committed a new version (GoogleMaps-jgf.23.mcz) that provides this feature. See the example in GMSimpleMap.</div><div><br></div><div>James</div><div><br><div><div>On Mar 2, 2010, at 3:20 AM, <a href="mailto:dtrussardi@tiscali.it">dtrussardi@tiscali.it</a> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="font-family: Times; "><pre><font class="Apple-style-span" face="Arial" size="3"><span class="Apple-style-span" style="font-size: 12px;">Thanks James,</span></font></pre><pre><font class="Apple-style-span" face="Arial"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">i have change the</span></font></font></pre><pre><font class="Apple-style-span" face="Arial"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">googleMap GMUsingLatLong&gt;&gt;#'googleMap'<br>

        ^GoogleMap new
                setCenter: 45.5267 @ -122.8390 zoom: 11;
                setUIToDefault;
                addScript: self markerScript;
                on: 'zoomEnd' do: [:x :y :z |
                        zoomLevelPrc := x.
                        zoomLevelAtt := y.
                
                ]; 
                on: 'moveend' do: [:x :y :z |
                        test:= 'go'.
                ];
                yourself.</span></font></font></pre><pre><font class="Apple-style-span" face="Arial"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">With this the moveend event is intercept.</span></font></font></pre><div><span class="Apple-style-span" style="white-space: pre;"><font class="Apple-style-span" face="Arial"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><br></span></font></font></span></div><div><span class="Apple-style-span" style="white-space: pre;"><font class="Apple-style-span" face="Arial"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">Now i d'ont know how i can define the center cordinates.</span></font></font></span></div><div><span class="Apple-style-span" style="white-space: pre;"><font class="Apple-style-span" face="Arial"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><br></span></font></font></span></div><div><span class="Apple-style-span" style="white-space: pre;"><font class="Apple-style-span" face="Arial"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">I think  moveend function  d'ont have parameters.</span></font></font></span></div><div><span class="Apple-style-span" style="white-space: pre;"><font class="Apple-style-span" face="Arial"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><br></span></font></font></span></div><span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"><font class="Apple-style-span" face="Arial"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><br></span></font></font></span><div><font class="Apple-style-span" face="Arial"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">How i can &nbsp;run &nbsp;</span></font></font><span class="Apple-style-span" style="font-style: italic; white-space: pre; "><font class="Apple-style-span" face="Arial"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">  var center = map.getCenter(); </span></font></font></span></div><div><font class="Apple-style-span" face="Arial"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><br></span></font></font></div><pre><span class="Apple-style-span" style="white-space: normal; "><font class="Apple-style-span" face="Arial"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">Any pointers would be greatly appreciated !</span></font></font></span></pre><pre><font class="Apple-style-span" face="Arial"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">Dario,</span></font></font></pre><pre>|&gt;<span class="Apple-tab-span" style="white-space:pre">        </span>See GMUsingLatLong&gt;&gt;#'googleMap' for an example of a callback from the browser to Smalltalk. You could modify the callback so that it persists the arguments instead of simply generating an a|&gt;<span class="Apple-tab-span" style="white-space:pre">        </span>lert to display in the browser. Basically, you would send #'on:do:' to the map and use the 'moveend' event.

<span class="Apple-tab-span" style="white-space:pre">        </span>James

On Mar 1, 2010, at 9:04 AM, <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">dtrussardi at tiscali.it</a> wrote:

&gt;<i> Hi, 
</i>&gt;<i> 
</i>&gt;<i> i work with Google Maps into  seaside based on <a href="http://seaside.gemstone.com/ss/GoogleMaps">http://seaside.gemstone.com/ss/GoogleMaps</a> .
</i>&gt;<i> 
</i>&gt;<i> I rendering the map and all work fine.
</i>&gt;<i> 
</i>&gt;<i> The user can move the map with no problem.
</i>&gt;<i> 
</i>&gt;<i> I'm interested, when user end the moving of the map, to sender  the new center  coordinates  of the map, to my seaside application.
</i>&gt;<i> 
</i>&gt;<i> It's possibly ? 
</i>&gt;<i> 
</i>&gt;<i> Into documentation i found this script:
</i>&gt;<i> 
</i>&gt;<i> 
</i>&gt;<i>         googleMap
</i>&gt;<i> 
</i>&gt;<i>         ^GoogleMap new
</i>&gt;<i>                 setCenter: 45.5267 @ -122.8390 zoom: 11;
</i>&gt;<i>                 setUIToDefault;
</i>&gt;<i>                 
</i>&gt;<i>                 addScript: 'GEvent.addListener(map, "moveend", function() {  var center = map.getCenter(); alert(center.toString());});';
</i>&gt;<i>                 yourself.
</i>&gt;<i> 
</i>&gt;<i> 
</i>&gt;<i> It's work fine when the user end the move,  it alert the new center coordinates.
</i>&gt;<i> 
</i>&gt;<i> 
</i>&gt;<i> Now how i can send this data to my application ?
</i>&gt;<i> 
</i>&gt;<i> 
</i>&gt;<i> 
</i>&gt;<i> Thanks for any considerations !!!
</i>&gt;<i> 
</i>&gt;<i>         Dario
</i>&gt;<i> 
</i>&gt;<i> 
</i><br></pre></span></div>_______________________________________________<br>seaside mailing list<br><a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br></blockquote></div><br></div></body></html>