On May 12, 2:22 pm, Edmund Situmorang <[email protected]>
wrote:
> Larry,
>
> I have used function placeMarkers(json) to put place markers on each
> of the members addresses but somehow it's not working right.
>
> I suspected that the gecoder.gecode function (inside placeMarker
> function) seems to not return value or something.

Sorry, didn't notice that.

The geocoder is asynchronous, it can't return values.  You need to
make use of the values inside the callback function, which I see you
are doing.  However, it is also subject to a quota and rate limits, so
it is bad practice to geocode known addresses everytime the page
loads, geocode them off-line and use the coordinates to display the
markers.  See this "article":

Geocoding Strategies
    An overview of different strategies you can use for making sure
you stay within the Google Maps API geocoding limits. This is a good
article to read if you find you are frequently running into the quota
limits of the Maps API Geocoders.

http://code.google.com/apis/maps/articles/geocodestrat.html

  -- Larry



>
> What do you think is the problem there?
>
> On May 12, 10:59 am, "[email protected]" <[email protected]>
> wrote:
>
> > On May 12, 10:43 am,EdmundSitumorang <[email protected]>
> > wrote:
>
> > > Davie,
>
> > > This is the link:http://sgvconsortium.org/Default.aspx?pageId=1012357
>
> > > I've been trying to work on this and it doesn't seem to work correctly
>
> > What do you mean by "it doesn't seem to work correctly"?  It does what
> > I would expect it to do.
>
> > If I type "nebraska" in the text box and click on "Find Address", it
> > puts a marker in central nebraska, centers the map there and opens an
> > inforwindow which says:
> > Nebraska, USA
> > Lat: 41.4925374
> > Lng: -99.90181310000002
>
> > Tested in Firefox and IE7.
>
> >   -- Larry
>
> > > Please help anyone....Thanks
>
> > > On May 6, 2:26 am, davie <[email protected]> wrote:
>
> > > > Hi
> > > > Post a link
> > > > Seehttp://groups.google.com/group/google-maps-js-api-v3/browse_thread/th...
>
> > > > Regards Davie
>
> > > > On May 6, 1:52 am,EdmundSitumorang <[email protected]>
> > > > wrote:
>
> > > > > Can anyone help me?
>
> > > > > On May 3, 1:32 am,EdmundSitumorang <[email protected]>
> > > > > wrote:
>
> > > > > > The v2 code is working just fine on my current website
> > > > > > sgvconsortium(DOOOT)ORG under directory tab...and the v3 is test 
> > > > > > tab..not
> > > > > > working.
> > > > > > Please help and take a look.  Thanks Larry.
>
>

-- 
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 [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-js-api-v3?hl=en.

Reply via email to