Javascript callback and google maps api question

Posted by es11 on Stack Overflow See other posts from Stack Overflow or by es11
Published on 2010-06-01T17:41:18Z Indexed on 2010/06/01 17:43 UTC
Read the original article Hit count: 395

I am using google maps api v3 and have an array of arrays object:

MVCArray.<MVCArray.<LatLng>>

I want to iterate over this. I see that MVCArray has a method forEach which uses a call back, but I have no idea how to use this (I haven't done much js). The api defines this method as follows:

forEach(callback:function(*, number)))

Could somebody please show me an example of how to use this given an MVCArray of MVCArrays?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about callback