it's not the case that i would need to write the function inline, is
it?

PS - julio, que actuación en TV 4! te aconsejo, tendrás que rehacer
los imágenes del sitio, o en otro formato de gama más amplia o con
gamas precisadas para los GIFs, para que no se vean tan pixelados.


On Mar 10, 12:46 am, brick <brickt...@gmail.com> wrote:
> marc et al, here is a pseudo version of my arrangement. please tell me
> how you think a closure can resolve this question. thanks!
>
> savePanorama: function ( SVPD, SVS ) {
>     panoramas [ id ] = SVPD;  // need to know its ID to save it
>
> },
>
> recordPanorama: function ( id ) {
>     // need to pass the ID to savePanorama ();
>     getPanoramaByLocation ( latLngs [ id ], 10, savePanorama );
>     setTimeout ( recordPanorama, delay, ++ id );
>
> }
>
> On Mar 9, 8:59 am, Marc Ridey <mri...@google.com> wrote:
>
> > Hi brick,
>
> > Closure should solve this. Can you supply a test page with what you;re
> > trying to do. It will help in providing an answer to your question.
>
> > Thanks
>
> > On Wed, Mar 9, 2011 at 4:40 AM, brick <brickt...@gmail.com> wrote:
> > > i understand how closures add extra variables to the scope of a
> > > method, and that this enables passing parameters to event listeners.
> > > but! for StreetViewService queries, the listener method is called from
> > > within google's code. i can't put a closure in there.
>
> > > is there any way to provide an id to my listeners for
> > > getPanoramaByLocation()? if not, i have to do all my queries one at a
> > > time.
>
> > > a similar question:
>
> > >http://groups.google.com/group/google-maps-js-api-v3/browse_thread/th...
>
> > > in this thread chad killingsworth suggests that a closure solves the
> > > problem, but searching and testing i haven't been able to corroborate
> > > his claim:
> > >http://groups.google.com/group/google-maps-js-api-v3/browse_thread/th...
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "Google Maps JavaScript API v3" group.
> > > To post to this group, send email to
> > > google-maps-js-api-v3@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-maps-js-api-v3+unsubscr...@googlegroups.com.
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-maps-js-api-v3?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to