Larry, you were spot on.
I changed my code from var defaultPoint = geocoder.getLatLng
to just geocoder.getLatLng
Also I took my localSearch code and placed it in the getLatLng call back
function
so that the local search executes when the initial geocode call finishes
processing.

One thing is still a little opaque. I do understand from Mike Williams great
tutorials that the
*alert* function will halt processing until the user clicks ok.But, in the
context of my problem,
why did it work when I uncommented the *alert(localPoint)* in the local
search processing?
Im guessing it's something to do with delaying code execution periodically
and giving my initial
call back a chance to run.

Thank you very much again for helping me out!
Henry

2009/1/6 Henry P <[email protected]>

> Ok, Ill give that a try,
> Thanks
>
> 2009/1/6 [email protected] <[email protected]>
>
>
>> On Jan 6, 8:05 am, "[email protected]" <[email protected]> wrote:
>> > Hi there. I have a very strange problem.
>> > Basically I am trying to do a local search for all local accounts that
>> > have a particular name. I can plot the first marker but during the
>> > local search near the bottom there is a problem. Basically if I
>> > uncomment the "alert(localPoint);", the code will work. I can see the
>> > respective points and they are plotted. But, if i comment out the
>> > "alert(localPoint);",
>> > I can't see the local points. Instead I get an error stating "this.Q
>> > is null" with relation to this line of code from firebug -
>> > "kl.prototype.ud=function(a,b){return thi...tion().fromLatLngToPixel
>> > (a,b||this.Ag)};"
>> >
>> > can someone help me out? Any ideas? Thanks
>>
>> See Mike Williams' tutorial:
>> Javascript Concepts
>> Part 2 Asynchronous I/O
>> http://econym.org.uk/gmap/async.htm
>>
>> > var defaultPoint = geocoder.getLatLng(
>>
>> the getLatLng method doesn't have a return value... it has a callback
>> function.
>>
>>  -- Larry
>> >>
>>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to