On Jul 20, 6:45 am, Nico <[email protected]> wrote:
> Hello,
>
> I noticed some rather strange behaviour concerning the geocoder object
> in combination with infoWindows and Markers.
>
> What I want to do: I have two latitude-/longitude values and want to
> get the addressinformation with those values. After that I create for
> each latitude-/longitude pair a new Marker and add a new attribute
> (address) with result[0].formatted_address as value. With those
> information I create a new event which displays the adressinformation
> in an infoWindow with a click on the specific marker.
>
> Somehow (and don't ask me why) this does only work when I use an alert
> in the if(geocoder) function. As soon as I take this alert out it only
> displays one of those markers I defined. There are no errors or stuff
> like that and unfortunately I don't have enough experience to know why
> this is happening. I'd really appreciate it if someone could explain
> me what I'm doing wrong.
>
> http://poirecognition.kilu.de/geolocation2.html

How do we get a map to display and exhibit the behavior?

I don't get a map on that page (I declined geolocation).

Geocoding (and reverse geocoding) are asynchronous.  If it works with
an alert and doesn't work without it, you don't understand what that
means.

When you call the geocoder, it sends a request to the server and
exits.  Sometime later, the request comes back from the server and the
callback function runs.

  -- Larry

  -- Larry

>
> Thanks in advance,
> Nico

-- 
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