multiple locations (easy question)

283 views
Skip to first unread message

Matt

unread,
Jan 30, 2012, 12:09:42 PM1/30/12
to google-map...@googlegroups.com

 

I’m new to google maps...I'm just looking for a way to display multiple markers with infowindows. I am pull in a list of addresses out of a listbox that comes out a dataset.

 

I would post my code, but I’m afraid that I jacked it all up trying to get this to work and wouldn't make any sense to any one anyway.

 

1. I'm pulling all of my address into an array

2. geocoding them and storing the coordinates in to another array

3. then trying to mark those coordinates and link them to infowindows with their own content.

 

Any examples of this would be greatly appreciated.

 

-Matt

geoco...@gmail.com

unread,
Jan 30, 2012, 3:28:06 PM1/30/12
to Google Maps JavaScript API v3
Do these help? Translated from pages in Mike Williams' v2 tutorial:
http://econym.org.uk/gmap/

http://www.geocodezip.com/v3_MW_example_map2.html
http://www.geocodezip.com/v3_MW_example_map3.html

-- Larry

>
> -Matt

Rossko

unread,
Jan 30, 2012, 5:08:08 PM1/30/12
to Google Maps JavaScript API v3
> 1. I'm pulling all of my address into an array
> 2. geocoding them and storing the coordinates in to another array

If that means geocoding all your addresses everytime your map is
viewed, its probably a bad strategy (as well as requiring more care in
coding due to asynchronous services)
Reply all
Reply to author
Forward
0 new messages