Re: Plot points when user zooms in
> I need to understand why CreateGSMarkers isn't returning anything.
Because you haven't told it to
http://www.java2s.com/Tutorial/JavaScript/0220__Array/Returnanarrayfromafunction.htm
There's two ways you can go about it.
You can make your function populate a global array, call teh function
at some time in your code, and later use that global array in some
other function(s).
Or, you can make your function actually return a value (an array in
this case) and call it as and when required, in place of an array. To
the caller, the function will "look like" an array itself, as that is
what it returns when you call it.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Google Maps API" group.
To post to this group, send email to google-maps-api@googlegroups.com
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en
-~----------~----~----~----~------~----~------~--~---
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home