On Dec 20, 9:47 am, Matthew <[email protected]> wrote:
> I am having a problem with the following code. I am pulling marker
> location data (adddress) from an XML file  along with a name for each
> marker (Company).

Don't do that.  Geocode the locations and store the latitude and
longitude as well as the address in the xml file.

> I want to show the respective company attribute from
> the XML file in a popup window (openInfoWindowHtml) and I thought the
> code below should do the trick, however it is for some reason printing
> the name of the last company in every popup window.
>
> Any thoughts as to what I have done wrong? I am a bit of a javascript
> novice and tried everything I can think of.
>
This (working) example may help you:
http://www.geocodezip.com/v3_MW_example_map3.html

Sounds like pitfall #3 in Mike Williams' v2 tutorial, but with the
geocoder involved you may need function closure for the call to the
geocoder as well as the call to create the marker.

If you want help, please follow the posting guidelines and post a link
to your map that shows the problem, not code.

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